[Box Backup-commit] COMMIT r3156 - box/trunk/lib/backupstore

subversion at boxbackup.org subversion at boxbackup.org
Sun Nov 18 16:26:43 GMT 2012


Author: chris
Date: 2012-11-18 16:26:43 +0000 (Sun, 18 Nov 2012)
New Revision: 3156

Modified:
   box/trunk/lib/backupstore/BackupStoreAccountDatabase.cpp
Log:
Allow passing a std::string instead of char* to BackupStoreAccountDatabase,
for C++ style.


Modified: box/trunk/lib/backupstore/BackupStoreAccountDatabase.cpp
===================================================================
--- box/trunk/lib/backupstore/BackupStoreAccountDatabase.cpp	2012-11-17 19:59:51 UTC (rev 3155)
+++ box/trunk/lib/backupstore/BackupStoreAccountDatabase.cpp	2012-11-18 16:26:43 UTC (rev 3156)
@@ -40,7 +40,7 @@
 //		Created: 2003/08/20
 //
 // --------------------------------------------------------------------------
-BackupStoreAccountDatabase::BackupStoreAccountDatabase(const char *Filename)
+BackupStoreAccountDatabase::BackupStoreAccountDatabase(const std::string& Filename)
 	: pImpl(new _BackupStoreAccountDatabase)
 {
 	pImpl->mFilename = Filename;
@@ -123,7 +123,7 @@
 //		Created: 2003/08/21
 //
 // --------------------------------------------------------------------------
-std::auto_ptr<BackupStoreAccountDatabase> BackupStoreAccountDatabase::Read(const char *Filename)
+std::auto_ptr<BackupStoreAccountDatabase> BackupStoreAccountDatabase::Read(const std::string& Filename)
 {
 	// Database object to use
 	std::auto_ptr<BackupStoreAccountDatabase> db(new BackupStoreAccountDatabase(Filename));




More information about the Boxbackup-commit mailing list