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 | |
parent | be4e42da9c4ef72947da73ea19c8461003669f40 (diff) |
Take a const std::string& for the filename rather than a const char *,
for C++ style.
Diffstat (limited to 'lib/backupclient')
-rw-r--r-- | lib/backupclient/BackupClientCryptoKeys.cpp | 4 | ||||
-rw-r--r-- | lib/backupclient/BackupClientCryptoKeys.h | 2 |
2 files changed, 3 insertions, 3 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)) { diff --git a/lib/backupclient/BackupClientCryptoKeys.h b/lib/backupclient/BackupClientCryptoKeys.h index 5e3a7df2..f40e2e03 100644 --- a/lib/backupclient/BackupClientCryptoKeys.h +++ b/lib/backupclient/BackupClientCryptoKeys.h @@ -49,7 +49,7 @@ #define BACKUPCRYPTOKEYS_FILE_AES_KEY_LENGTH 32 -void BackupClientCryptoKeys_Setup(const char *KeyMaterialFilename); +void BackupClientCryptoKeys_Setup(const std::string& rKeyMaterialFilename); #endif // BACKUPCLIENTCRYTOKEYS__H |