FC Updates from BitShares and myself #21

Closed
nathanielhourt wants to merge 687 commits from dapp-support into latest-fc
Showing only changes of commit 5b5190a55c - Show all commits

View file

@ -125,7 +125,7 @@ static char *my_rl_complete(char *token, int *match)
auto& cmd = cli_commands(); auto& cmd = cli_commands();
int partlen = strlen (token); /* Part of token */ int partlen = strlen (token); /* Part of token */
for (const std::string it : cmd) for (const std::string& it : cmd)
{ {
if (it.compare(0, partlen, token) == 0) if (it.compare(0, partlen, token) == 0)
{ {
@ -172,7 +172,7 @@ static int cli_completion(char *token, char ***array)
int partlen = strlen(token); int partlen = strlen(token);
for (const std::string it : cmd) for (const std::string& it : cmd)
{ {
if ( it.compare(0, partlen, token) == 0) if ( it.compare(0, partlen, token) == 0)
{ {