author | mickeyl <mickeyl> | 2004-04-24 15:11:39 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-24 15:11:39 (UTC) |
commit | 1a00a2edf5da1aa7d47c736bb718933f1c2e774b (patch) (side-by-side diff) | |
tree | f14bdd2ac8aa2912238eb2ed254fa8cfe03e5b7f /noncore/apps/tableviewer/db/common.cpp | |
parent | 2b700fa535661eb1ac897797f318a2694397a4d6 (diff) | |
download | opie-1a00a2edf5da1aa7d47c736bb718933f1c2e774b.zip opie-1a00a2edf5da1aa7d47c736bb718933f1c2e774b.tar.gz opie-1a00a2edf5da1aa7d47c736bb718933f1c2e774b.tar.bz2 |
gcc34 fixlet
Diffstat (limited to 'noncore/apps/tableviewer/db/common.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tableviewer/db/common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/tableviewer/db/common.cpp b/noncore/apps/tableviewer/db/common.cpp index 6e544ba..b58af85 100644 --- a/noncore/apps/tableviewer/db/common.cpp +++ b/noncore/apps/tableviewer/db/common.cpp @@ -1073,34 +1073,34 @@ QDataStream &operator<<( QDataStream &s, const DataElem &d) s << (Q_UINT16)it.currentKey(); s << d.getField(it.currentKey()); ++it; } return s; } QDataStream &operator>>( QDataStream &s, DataElem &d) { int i; int size; TVVariant t; - int index = 0; + Q_UINT16 index = 0; s >> size; /* redundent data but makes streaming easier */ if (size != d.getNumFields()) { owarn << "DataSize mis-match" << oendl; return s; /* sanity check failed.. don't load */ } for(i = 0; i < size; i++) { - s >> (Q_UINT16)index; + s >> index; s >> t; d.setField(index, t); } return s; } /*! Returns the number of possible (not valid) fields in the data element */ int DataElem::getNumFields() const { return contained->getNumFields(); } |