SyncJournalDb: use QByteArray for etag and fileid

This commit is contained in:
Olivier Goffart 2014-06-19 14:27:04 +02:00
parent 0d54b88ab2
commit f4ea34e63b
2 changed files with 4 additions and 4 deletions

View file

@ -482,8 +482,8 @@ SyncJournalFileRecord SyncJournalDb::getFileRecord( const QString& filename )
rec._mode = _getFileRecordQuery->value(4).toInt(&ok);
rec._modtime = Utility::qDateTimeFromTime_t(_getFileRecordQuery->value(5).toLongLong(&ok));
rec._type = _getFileRecordQuery->value(6).toInt(&ok);
rec._etag = _getFileRecordQuery->value(7).toString();
rec._fileId = _getFileRecordQuery->value(8).toString();
rec._etag = _getFileRecordQuery->value(7).toByteArray();
rec._fileId = _getFileRecordQuery->value(8).toByteArray();
rec._remotePerm = _getFileRecordQuery->value(9).toByteArray();
_getFileRecordQuery->finish();

View file

@ -35,8 +35,8 @@ public:
quint64 _inode;
QDateTime _modtime;
int _type;
QString _etag; // FIXME Why not QByteArray?
QString _fileId; // FIXME Why not QByteArray?
QByteArray _etag;
QByteArray _fileId;
QByteArray _remotePerm;
int _mode;
};