summaryrefslogtreecommitdiff
path: root/lib/backupstore
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-11-18 16:26:43 +0000
committerChris Wilson <chris+github@qwirx.com>2012-11-18 16:26:43 +0000
commit3db7d944f5849db8ea8098de54ad45bbb0bf6b86 (patch)
tree8aaee5e9cbd8a00eedbbbb1f90d297b5f81f39e9 /lib/backupstore
parent69147089fa278f1225ae5fb29c87a59009dcc900 (diff)
Allow passing a std::string instead of char* to BackupStoreAccountDatabase,
for C++ style.
Diffstat (limited to 'lib/backupstore')
-rw-r--r--lib/backupstore/BackupStoreAccountDatabase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backupstore/BackupStoreAccountDatabase.cpp b/lib/backupstore/BackupStoreAccountDatabase.cpp
index 72a813d5..201491a3 100644
--- a/lib/backupstore/BackupStoreAccountDatabase.cpp
+++ b/lib/backupstore/BackupStoreAccountDatabase.cpp
@@ -40,7 +40,7 @@ public:
// 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 @@ BackupStoreAccountDatabase::Entry::~Entry()
// 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));