From 576e90ce3f50e1b9de2bfd6d88736a16604ae552 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 22 Aug 2013 00:24:24 +0000 Subject: Improve variable names and comments. Makes the source code more readable. --- lib/backupstore/BackupCommands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/backupstore') diff --git a/lib/backupstore/BackupCommands.cpp b/lib/backupstore/BackupCommands.cpp index 1f4244f6..318ce55a 100644 --- a/lib/backupstore/BackupCommands.cpp +++ b/lib/backupstore/BackupCommands.cpp @@ -249,13 +249,13 @@ std::auto_ptr BackupProtocolStoreFile::DoCommand(BackupPr } // A stream follows, which contains the file - std::auto_ptr dirstream(rProtocol.ReceiveStream()); + std::auto_ptr filestream(rProtocol.ReceiveStream()); // Ask the context to store it int64_t id = 0; try { - id = rContext.AddFile(*dirstream, mDirectoryObjectID, + id = rContext.AddFile(*filestream, mDirectoryObjectID, mModificationTime, mAttributesHash, mDiffFromFileID, mFilename, true /* mark files with same name as old versions */); @@ -276,7 +276,7 @@ std::auto_ptr BackupProtocolStoreFile::DoCommand(BackupPr } } - // Tell the caller what the file was + // Tell the caller what the file ID was return std::auto_ptr(new BackupProtocolSuccess(id)); } -- cgit v1.2.3