Skip to content

Commit

Permalink
Use const reference as suggested by linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-paul committed Oct 27, 2024
1 parent 55cc6cb commit 0910d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openscad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
Expand Down

0 comments on commit 0910d51

Please sign in to comment.