From d01ba94ed74bced0750ebe3bad62189a615cc924 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 23 Sep 2019 10:14:33 -0700 Subject: [PATCH] avoid extraneous copy --- src/misc/pv/epicsException.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/pv/epicsException.h b/src/misc/pv/epicsException.h index 6f2ebf6..e9fc50a 100644 --- a/src/misc/pv/epicsException.h +++ b/src/misc/pv/epicsException.h @@ -207,7 +207,7 @@ public: /** * Constructor. */ - explicit BaseException(const std::string msg) : std::logic_error(msg) {} + explicit BaseException(const std::string& msg) : std::logic_error(msg) {} /** * Destructor.