From 00fa5094f9be1c260c9d07d03575b64fe17ea22b Mon Sep 17 00:00:00 2001 From: Pascal Bauer Date: Fri, 9 Dec 2022 12:54:28 +0100 Subject: [PATCH] pass constructor parameter as const ref for performance Signed-off-by: Pascal Bauer --- fpga/include/villas/fpga/vlnv.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpga/include/villas/fpga/vlnv.hpp b/fpga/include/villas/fpga/vlnv.hpp index ac865201d..0f6d1a752 100644 --- a/fpga/include/villas/fpga/vlnv.hpp +++ b/fpga/include/villas/fpga/vlnv.hpp @@ -41,7 +41,7 @@ public: version("") { } - Vlnv(std::string s) + Vlnv(const std::string &s) { parseFromString(s); }