Merge branch '0.4.x' into 0.5.x
[novacoin.git] / src / bitcoinrpc.cpp
index 77efdfa..b141e73 100644 (file)
@@ -145,7 +145,7 @@ Value help(const Array& params, bool fHelp)
             // Help text is returned in an exception
             string strHelp = string(e.what());
             if (strCommand == "")
-                if (strHelp.find('\n') != -1)
+                if (strHelp.find('\n') != string::npos)
                     strHelp = strHelp.substr(0, strHelp.find('\n'));
             strRet += strHelp + "\n";
         }