diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-01-23 17:25:12 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-01-23 17:25:39 +0100 |
| commit | 6403c6c835a3302a6ee575576be93e4104a39685 (patch) | |
| tree | eeca53e065947846648d9373f240d593c0c0ecfc /src/leveldbwrapper.cpp | |
| parent | build: fix typo in configure help message (diff) | |
| parent | Remove redundant .c_str()s (diff) | |
| download | discoin-6403c6c835a3302a6ee575576be93e4104a39685.tar.xz discoin-6403c6c835a3302a6ee575576be93e4104a39685.zip | |
Merge pull request #3549
7d9d134 Remove redundant .c_str()s (Wladimir J. van der Laan)
b77dfdc Typesafe strprintf/error/LogPrint functions (Wladimir J. van der Laan)
Diffstat (limited to 'src/leveldbwrapper.cpp')
| -rw-r--r-- | src/leveldbwrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leveldbwrapper.cpp b/src/leveldbwrapper.cpp index aff1ec028..c2935ed01 100644 --- a/src/leveldbwrapper.cpp +++ b/src/leveldbwrapper.cpp @@ -15,7 +15,7 @@ void HandleError(const leveldb::Status &status) throw(leveldb_error) { if (status.ok()) return; - LogPrintf("%s\n", status.ToString().c_str()); + LogPrintf("%s\n", status.ToString()); if (status.IsCorruption()) throw leveldb_error("Database corrupted"); if (status.IsIOError()) @@ -48,11 +48,11 @@ CLevelDBWrapper::CLevelDBWrapper(const boost::filesystem::path &path, size_t nCa options.env = penv; } else { if (fWipe) { - LogPrintf("Wiping LevelDB in %s\n", path.string().c_str()); + LogPrintf("Wiping LevelDB in %s\n", path.string()); leveldb::DestroyDB(path.string(), options); } boost::filesystem::create_directory(path); - LogPrintf("Opening LevelDB in %s\n", path.string().c_str()); + LogPrintf("Opening LevelDB in %s\n", path.string()); } leveldb::Status status = leveldb::DB::Open(options, path.string(), &pdb); HandleError(status); |