Skip to content

Commit

Permalink
Reorder inits in TransferMetaData constructor
Browse files Browse the repository at this point in the history
Fix warning [-Wreorder]: reorder initializers in
TransferMetaData::TransferMetaData as they match
declarations order.
  • Loading branch information
howetuft committed Oct 6, 2019
1 parent a84ab9c commit ee6000d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/MEGASync/MegaApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ class TransferMetaData
{
public:
TransferMetaData(int direction, int total = 0, int pending = 0, QString path = QString())
: transferDirection(direction), totalTransfers(total), pendingTransfers(pending),
localPath(path), totalFiles(0), totalFolders(0),
: totalTransfers(total), pendingTransfers(pending),
totalFiles(0), totalFolders(0),
transfersFileOK(0), transfersFolderOK(0),
transfersFailed(0), transfersCancelled(0) {}
transfersFailed(0), transfersCancelled(0),
transferDirection(direction), localPath(path) {}

int totalTransfers;
int pendingTransfers;
Expand Down

0 comments on commit ee6000d

Please sign in to comment.