summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-02-05 23:52:27 +0100
committerGary Lowell <glowell@inktank.com>2013-02-05 19:29:10 -0800
commit1b70fc408c014403b4b466c8d19b26f1d84943a1 (patch)
treea6b9a2dec5849ff166f54d3c933292568a2ab76d
parent09bdfa40d59e76f6027518cf07bfc7e527545216 (diff)
downloadceph-1b70fc408c014403b4b466c8d19b26f1d84943a1.tar.gz
include/types.h: change operator<< function parameter
Fix "Function parameter 'v' should be passed by reference." from cppchecker. Use 'const pair<A,B>& v' similar to the other operator<< in this file. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/include/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/types.h b/src/include/types.h
index c783b6e93ce..dff47ac2b98 100644
--- a/src/include/types.h
+++ b/src/include/types.h
@@ -120,7 +120,7 @@ namespace __gnu_cxx {
// -- io helpers --
template<class A, class B>
-inline ostream& operator<<(ostream& out, const pair<A,B> v) {
+inline ostream& operator<<(ostream& out, const pair<A,B>& v) {
return out << v.first << "," << v.second;
}