diff options
author | R E Broadley <rebroad+github@gmail.com> | 2014-05-21 18:50:46 +0800 |
---|---|---|
committer | R E Broadley <rebroad+github@gmail.com> | 2014-05-22 00:23:03 +0700 |
commit | 79d06dc6e07103b31b530f71b7187ea82c34266b (patch) | |
tree | 8a01bf8e5bc367115d4b58a7969b44c35cabe096 /src/main.h | |
parent | 6fcdad787f1fb381a3a0fe6b1a1e45477426dccb (diff) |
Remove redundant c_str
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.h b/src/main.h index f47c9ee825..1dc48c0af8 100644 --- a/src/main.h +++ b/src/main.h @@ -862,13 +862,13 @@ public: { return strprintf("CBlockIndex(pprev=%p, nHeight=%d, merkle=%s, hashBlock=%s)", pprev, nHeight, - hashMerkleRoot.ToString().c_str(), - GetBlockHash().ToString().c_str()); + hashMerkleRoot.ToString(), + GetBlockHash().ToString()); } void print() const { - LogPrintf("%s\n", ToString().c_str()); + LogPrintf("%s\n", ToString()); } // Check whether this block index entry is valid up to the passed validity level. @@ -953,14 +953,14 @@ public: std::string str = "CDiskBlockIndex("; str += CBlockIndex::ToString(); str += strprintf("\n hashBlock=%s, hashPrev=%s)", - GetBlockHash().ToString().c_str(), - hashPrev.ToString().c_str()); + GetBlockHash().ToString(), + hashPrev.ToString()); return str; } void print() const { - LogPrintf("%s\n", ToString().c_str()); + LogPrintf("%s\n", ToString()); } }; |