]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2377] Pass string by reference
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 7 Dec 2012 18:13:47 +0000 (19:13 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 7 Dec 2012 18:13:47 +0000 (19:13 +0100)
It was obviously forgotten (and cppcheck complained).

src/lib/dns/tests/master_loader_unittest.cc

index a779f9a39f5415cf11f7ea81407af0eaaf315c07..0c2eb1a9720394dbca313683d4f6c33e7c7a03f9 100644 (file)
@@ -48,7 +48,7 @@ public:
     /// Concatenate file, line, and reason, and add it to either errors
     /// or warnings
     void callback(vector<string>* target, const std::string& file, size_t line,
-                  const std::string reason)
+                  const std::string& reason)
     {
         std::stringstream ss;
         ss << reason << " [" << file << ":" << line << "]";