summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-02-06 12:02:48 +0100
committerSage Weil <sage@inktank.com>2013-02-06 08:42:03 -0800
commitd54bd1700fb5af6eb1d96acaf7b428133712496b (patch)
tree05155d263b40d07320b256a5d0bc36eca04ab36e
parent0327cbaa2ab48b8da8aad181f55ce4e48fe3946c (diff)
downloadceph-d54bd1700fb5af6eb1d96acaf7b428133712496b.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;
}