diff --git a/src/openscad.cc b/src/openscad.cc index a3be9c31a8..30ee3f7994 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -228,7 +228,7 @@ void set_render_color_scheme(const std::string& color_scheme, const bool exit_if */ void localization_init() { fs::path po_dir(PlatformUtils::resourcePath("locale")); - std::string locale_path(po_dir.string()); + const std::string& locale_path(po_dir.string()); if (fs::is_directory(locale_path)) { setlocale(LC_ALL, "");