git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
20d8d5f
)
Remove c_str: stringvar1 = stringvar2
283/head
author
svost
<ya.nowa@yandex.ru>
Mon, 22 Feb 2016 12:30:33 +0000 (15:30 +0300)
committer
svost
<ya.nowa@yandex.ru>
Mon, 22 Feb 2016 12:30:33 +0000 (15:30 +0300)
src/irc.cpp
patch
|
blob
|
history
src/rpcwallet.cpp
patch
|
blob
|
history
diff --git
a/src/irc.cpp
b/src/irc.cpp
index
03bc607
..
ecdafaa
100644
(file)
--- a/
src/irc.cpp
+++ b/
src/irc.cpp
@@
-333,7
+333,7
@@
void ThreadIRCSeed2(void* parg)
{
// index 7 is limited to 16 characters
// could get full length name at index 10, but would be different from join messages
- strName = vWords[7].c_str();
+ strName = vWords[7];
printf("IRC got who\n");
}
diff --git
a/src/rpcwallet.cpp
b/src/rpcwallet.cpp
index
5ebff9c
..
0c27a90
100644
(file)
--- a/
src/rpcwallet.cpp
+++ b/
src/rpcwallet.cpp
@@
-1785,7
+1785,7
@@
Value reservebalance(const Array& params, bool fHelp)
nAmount = (nAmount / CENT) * CENT; // round to cent
if (nAmount < 0)
throw runtime_error("amount cannot be negative.\n");
- mapArgs["-reservebalance"] = FormatMoney(nAmount).c_str();
+ mapArgs["-reservebalance"] = FormatMoney(nAmount);
}
else
{