]> Git Repo - VerusCoin.git/blobdiff - src/alert.cpp
Cosmetics (trailing whitespace, comment conventions, etc.)
[VerusCoin.git] / src / alert.cpp
index 6e41b11a21deb9d1d928ff154973cfee02306679..ea9cbad21170107b758b61143b87c5c3b230e1a0 100644 (file)
@@ -50,7 +50,7 @@ std::string CUnsignedAlert::ToString() const
     BOOST_FOREACH(int n, setCancel)
         strSetCancel += strprintf("%d ", n);
     std::string strSetSubVer;
-    BOOST_FOREACH(std::string str, setSubVer)
+    BOOST_FOREACH(const std::string& str, setSubVer)
         strSetSubVer += "\"" + str + "\" ";
     return strprintf(
         "CAlert(\n"
@@ -112,7 +112,7 @@ bool CAlert::Cancels(const CAlert& alert) const
     return (alert.nID <= nCancel || setCancel.count(alert.nID));
 }
 
-bool CAlert::AppliesTo(int nVersion, std::string strSubVerIn) const
+bool CAlert::AppliesTo(int nVersion, const std::string& strSubVerIn) const
 {
     // TODO: rework for client-version-embedded-in-strSubVer ?
     return (IsInEffect() &&
This page took 0.023542 seconds and 4 git commands to generate.