Initialise values properly, avoid warning.

This commit is contained in:
Klaas Freitag 2013-11-13 14:30:08 +01:00
parent 858facb5e0
commit c22f8a47f1
3 changed files with 8 additions and 5 deletions

View File

@ -373,6 +373,7 @@ void PropagateItemJob::updateMTimeAndETag(const char* uri, time_t mtime)
ops[1].name = NULL;
int rc = ne_proppatch( _propagator->_session, uri, ops );
Q_UNUSED(rc);
/* FIXME: error handling
bool error = updateErrorFromSession( rc );
if( error ) {

View File

@ -26,11 +26,13 @@
namespace Mirall {
SyncJournalFileRecord::SyncJournalFileRecord()
:_uid(0), _gid(0), _mode(0)
{
}
SyncJournalFileRecord::SyncJournalFileRecord(const SyncFileItem &item, const QString &localFileName)
: _path(item._file), _type(item._type), _etag(item._etag), _fileId(item._fileId)
: _path(item._file), _type(item._type), _etag(item._etag), _fileId(item._fileId),
_uid(0), _gid(0), _mode(0)
{
if (item._dir == SyncFileItem::Down) {
QFileInfo fi(localFileName);

View File

@ -34,14 +34,14 @@ public:
// query("SELECT path, inode, uid, gid, mode, modtime, type, md5 FROM metadata WHERE phash=:phash");
QString _path;
int _inode;
int _uid;
int _gid;
int _mode;
quint64 _inode;
QDateTime _modtime;
int _type;
QString _etag;
QString _fileId;
int _uid;
int _gid;
int _mode;
};
}