diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 10:54:57 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 10:54:57 +0000 |
commit | e08f8233e779ecc2ec072a3d4e9832c3dffb3662 (patch) | |
tree | 095581ac6069d2a825fdc1ceebbe6e95bb2d6ed9 /lib/backupclient/BackupClientCryptoKeys.cpp | |
parent | be4e42da9c4ef72947da73ea19c8461003669f40 (diff) |
Take a const std::string& for the filename rather than a const char *,
for C++ style.
Diffstat (limited to 'lib/backupclient/BackupClientCryptoKeys.cpp')
-rw-r--r-- | lib/backupclient/BackupClientCryptoKeys.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backupclient/BackupClientCryptoKeys.cpp b/lib/backupclient/BackupClientCryptoKeys.cpp index 46b77f0a..7f5f2f24 100644 --- a/lib/backupclient/BackupClientCryptoKeys.cpp +++ b/lib/backupclient/BackupClientCryptoKeys.cpp @@ -28,13 +28,13 @@ // Created: 1/12/03 // // -------------------------------------------------------------------------- -void BackupClientCryptoKeys_Setup(const char *KeyMaterialFilename) +void BackupClientCryptoKeys_Setup(const std::string& rKeyMaterialFilename) { // Read in the key material unsigned char KeyMaterial[BACKUPCRYPTOKEYS_FILE_SIZE]; // Open the file - FileStream file(KeyMaterialFilename); + FileStream file(rKeyMaterialFilename); // Read in data if(!file.ReadFullBuffer(KeyMaterial, BACKUPCRYPTOKEYS_FILE_SIZE, 0)) { |