[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/kpilot/conduits/notepadconduit
From: Adriaan de Groot <groot () kde ! org>
Date: 2004-12-14 22:45:39
Message-ID: 20041214224539.E2AEA1B939 () office ! kde ! org
[Download RAW message or body]
CVS commit by adridg:
Warnings------
M +7 -6 notepad-conduit.cc 1.12
--- kdepim/kpilot/conduits/notepadconduit/notepad-conduit.cc #1.11:1.12
@@ -133,5 +133,5 @@ NotepadActionThread::NotepadActionThread
PilotSerialDatabase *db = new PilotSerialDatabase(fPilotSocket, "npadDB");
- int n = db->recordCount();
+ // int n = db->recordCount();
QValueList<recordid_t> vl = db->idList();
QValueList<recordid_t>::iterator it;
@@ -247,4 +247,5 @@ int NotepadActionThread::unpackNotePad(s
}
+ Q_UNUSED(len);
return ( buffer - start ); /* FIXME: return real length */
}
@@ -254,5 +255,5 @@ void NotepadActionThread::saveImage(stru
FUNCTIONSETUP;
- int i,j,k,datapoints = 0;
+ int datapoints = 0;
QImage image(n->body.width+8, n->body.height, 8, 2);
@@ -263,10 +264,10 @@ void NotepadActionThread::saveImage(stru
int y = 0;
int pos = 0;
- for(i=0; i<n->body.dataLen/2; ++i)
+ for(unsigned int i=0; i<n->body.dataLen/2; ++i)
{
datapoints += n->data[i].repeat;
- for(j=0; j<n->data[i].repeat; ++j)
+ for(int j=0; j<n->data[i].repeat; ++j)
{
- for(k=0; k<8; ++k)
+ for(int k=0; k<8; ++k)
{
y = pos / 160;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic