From 42d39040eeba1839d2e8ff1cdb09b4a5970cfe69 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 11 Aug 2023 23:40:54 +0100 Subject: Fix to_lower so actually lowers the string --- slicer/slicer/hookMap.cpp | 2 +- slicer/slicer/hookMap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slicer/slicer/hookMap.cpp b/slicer/slicer/hookMap.cpp index 6e17a38..3192d6c 100644 --- a/slicer/slicer/hookMap.cpp +++ b/slicer/slicer/hookMap.cpp @@ -3,7 +3,7 @@ namespace Slicer { void - to_lower(std::string s) + to_lower(std::string & s) { boost::algorithm::to_lower(s); } diff --git a/slicer/slicer/hookMap.h b/slicer/slicer/hookMap.h index 5f71e17..fe8e646 100644 --- a/slicer/slicer/hookMap.h +++ b/slicer/slicer/hookMap.h @@ -10,7 +10,7 @@ #include namespace Slicer { - void DLL_PUBLIC to_lower(std::string s); + void DLL_PUBLIC to_lower(std::string & s); template class ModelPartForComplex; // IWYU pragma: keep -- cgit v1.2.3