Changeset 2249


Ignore:
Timestamp:
21/08/2008 11:54:57 (4 years ago)
Author:
chris
Message:

Take a const std::string& for the filename rather than a const char *,
for C++ style.

Location:
box/trunk/lib/backupclient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/backupclient/BackupClientCryptoKeys.cpp

    r217 r2249  
    2929// 
    3030// -------------------------------------------------------------------------- 
    31 void BackupClientCryptoKeys_Setup(const char *KeyMaterialFilename) 
     31void BackupClientCryptoKeys_Setup(const std::string& rKeyMaterialFilename) 
    3232{ 
    3333        // Read in the key material 
     
    3535         
    3636        // Open the file 
    37         FileStream file(KeyMaterialFilename); 
     37        FileStream file(rKeyMaterialFilename); 
    3838        // Read in data 
    3939        if(!file.ReadFullBuffer(KeyMaterial, BACKUPCRYPTOKEYS_FILE_SIZE, 0)) 
  • box/trunk/lib/backupclient/BackupClientCryptoKeys.h

    r217 r2249  
    5050 
    5151 
    52 void BackupClientCryptoKeys_Setup(const char *KeyMaterialFilename); 
     52void BackupClientCryptoKeys_Setup(const std::string& rKeyMaterialFilename); 
    5353 
    5454#endif // BACKUPCLIENTCRYTOKEYS__H 
Note: See TracChangeset for help on using the changeset viewer.