diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-05 07:00:57 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-05 07:11:44 +0200 |
| commit | 3fce72eaa3ea75aa911e32c4d96313848338cede (patch) | |
| tree | 8604bec497a9137315589e468ba8f79e1f7a0fd7 /src/alert.cpp | |
| parent | Merge pull request #6234 (diff) | |
| parent | use const references where appropriate (diff) | |
| download | discoin-3fce72eaa3ea75aa911e32c4d96313848338cede.tar.xz discoin-3fce72eaa3ea75aa911e32c4d96313848338cede.zip | |
Merge pull request #6206
a9ac95c use const references where appropriate (Philip Kaufmann)
Diffstat (limited to 'src/alert.cpp')
| -rw-r--r-- | src/alert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alert.cpp b/src/alert.cpp index aa7ac748d..ad81e7422 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -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" @@ -110,7 +110,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() && |