From ad10e019fe88ab95b7055730216185575d8b09ee Mon Sep 17 00:00:00 2001 From: AdenKoperczak Date: Sun, 6 Oct 2024 12:13:00 -0400 Subject: [PATCH] use referance to avoid unnecessary copy --- scwx-qt/source/scwx/qt/types/marker_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scwx-qt/source/scwx/qt/types/marker_types.hpp b/scwx-qt/source/scwx/qt/types/marker_types.hpp index ffa94b3d..0d9c575b 100644 --- a/scwx-qt/source/scwx/qt/types/marker_types.hpp +++ b/scwx-qt/source/scwx/qt/types/marker_types.hpp @@ -11,7 +11,7 @@ namespace types struct MarkerInfo { - MarkerInfo(std::string name, double latitude, double longitude) : + MarkerInfo(const std::string& name, double latitude, double longitude) : name {name}, latitude {latitude}, longitude {longitude} { }