Permalink
Browse files

Constify trivial argument.

  • Loading branch information...
1 parent ff07edd commit 239aeed172e4f60e0cabd1026881cfae4a049acb @sinetek sinetek committed Jan 3, 2017
Showing with 2 additions and 3 deletions.
  1. +1 −1 src/util.cpp
  2. +1 −2 src/util.h
View
@@ -684,7 +684,7 @@ boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate)
}
#endif
-void runCommand(std::string strCommand)
+void runCommand(const std::string& strCommand)
{
int nErr = ::system(strCommand.c_str());
if (nErr)
View
@@ -168,8 +168,7 @@ int64_t GetTime();
void SetMockTime(int64_t nMockTimeIn);
std::string FormatFullVersion();
std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
-void runCommand(std::string strCommand);
-
+void runCommand(const std::string& strCommand);

0 comments on commit 239aeed

Please sign in to comment.