diff options
author | Chris Wilson <chris+github@qwirx.com> | 2013-08-21 00:57:17 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2013-08-21 00:57:17 +0000 |
commit | 9662290600dd0a9fac3626ca07da0cb8c40e62b0 (patch) | |
tree | e22b7fc70b7c83ba7a24d2787ef5fcb9127cddcd /lib/backupstore/BackupStoreFileDiff.cpp | |
parent | 51d63d54c9ab3a0d53760e0e8a6a5ac57963dd36 (diff) |
Pass std::strings to functions instead of const char *, for C++ style.
Diffstat (limited to 'lib/backupstore/BackupStoreFileDiff.cpp')
-rw-r--r-- | lib/backupstore/BackupStoreFileDiff.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backupstore/BackupStoreFileDiff.cpp b/lib/backupstore/BackupStoreFileDiff.cpp index ce38fabd..c8a28b78 100644 --- a/lib/backupstore/BackupStoreFileDiff.cpp +++ b/lib/backupstore/BackupStoreFileDiff.cpp @@ -125,7 +125,7 @@ void BackupStoreFile::MoveStreamPositionToBlockIndex(IOStream &rStream) // -------------------------------------------------------------------------- std::auto_ptr<IOStream> BackupStoreFile::EncodeFileDiff ( - const char *Filename, int64_t ContainerID, + const std::string& Filename, int64_t ContainerID, const BackupStoreFilename &rStoreFilename, int64_t DiffFromObjectID, IOStream &rDiffFromBlockIndex, int Timeout, DiffTimer *pDiffTimer, int64_t *pModificationTime, bool *pIsCompletelyDifferent) @@ -133,7 +133,7 @@ std::auto_ptr<IOStream> BackupStoreFile::EncodeFileDiff // Is it a symlink? { EMU_STRUCT_STAT st; - if(EMU_LSTAT(Filename, &st) != 0) + if(EMU_LSTAT(Filename.c_str(), &st) != 0) { THROW_EXCEPTION(CommonException, OSFileError) } |