From ee3aef12cf78ba058d65ef759c4b387e136b3b78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Tr=C3=A1vn=C3=AD=C4=8Dek?= <jan.travnicek@fit.cvut.cz>
Date: Sat, 26 Feb 2022 10:16:40 +0100
Subject: [PATCH] tidy: pass by reference

---
 alib2abstraction/src/core/type_util.cpp | 2 +-
 alib2abstraction/src/core/type_util.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/alib2abstraction/src/core/type_util.cpp b/alib2abstraction/src/core/type_util.cpp
index 9a65d0eb9a..d184c2414a 100644
--- a/alib2abstraction/src/core/type_util.cpp
+++ b/alib2abstraction/src/core/type_util.cpp
@@ -119,7 +119,7 @@ std::string type_util < std::string >::normalize ( std::string arg ) {
 	return arg;
 }
 
-std::unique_ptr < type_details_base > type_util < std::string >::type ( std::string ) {
+std::unique_ptr < type_details_base > type_util < std::string >::type ( const std::string & ) {
 	return std::make_unique < type_details_type > ( "std::string" );
 }
 
diff --git a/alib2abstraction/src/core/type_util.hpp b/alib2abstraction/src/core/type_util.hpp
index 80bc6838c3..4a1ab3c8d2 100644
--- a/alib2abstraction/src/core/type_util.hpp
+++ b/alib2abstraction/src/core/type_util.hpp
@@ -80,7 +80,7 @@ struct type_util < std::string > {
 
 	static std::string normalize ( std::string arg );
 
-	static std::unique_ptr < type_details_base > type ( std::string arg );
+	static std::unique_ptr < type_details_base > type ( const std::string & arg );
 };
 
 template < >
-- 
GitLab