From 9ce544f087436d0addb74b5b8f09c95d2d90c855 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Mon, 11 Jun 2018 10:06:50 +0200 Subject: [PATCH] [cppcheck] chunk: Pass strign by reference --- src/stream/chunk.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream/chunk.hpp b/src/stream/chunk.hpp index b5be7b2..10a1193 100644 --- a/src/stream/chunk.hpp +++ b/src/stream/chunk.hpp @@ -47,7 +47,7 @@ class slice_reader; //! Error thrown by \ref chunk_reader::get if there was a problem. struct chunk_error : public std::ios_base::failure { - explicit chunk_error(std::string msg) : std::ios_base::failure(msg) { } + explicit chunk_error(const std::string & msg) : std::ios_base::failure(msg) { } };