aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-05-25 16:20:21 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-05-25 16:46:49 +0200
commit73f7153f435a2f04ecfa18cc1b1b0232120169d6 (patch)
treea8dfe43423e8799de57076cb3652ead1e9df7d95 /src/main.h
parent0f1040ba5213bde402e8ac9c1e4da91ca319c9de (diff)
parent79d06dc6e07103b31b530f71b7187ea82c34266b (diff)
Merge pull request #4206
79d06dc Remove redundant c_str (R E Broadley)
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.h b/src/main.h
index 1edf5f4d82..8a05eb60d2 100644
--- a/src/main.h
+++ b/src/main.h
@@ -859,13 +859,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.
@@ -950,14 +950,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());
}
};