mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Initialise values properly, avoid warning.
This commit is contained in:
parent
858facb5e0
commit
c22f8a47f1
@ -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 ) {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user