Skip to content

Commit 2c5bd6d

Browse files
committed
Harmless optimization
CURA-11978
1 parent 5940d31 commit 2c5bd6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/settings/Settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Settings
4444
* \param value The value of the setting. The value is always added and
4545
* stored in serialised form as a string.
4646
*/
47-
void add(const std::string& key, const std::string value);
47+
void add(const std::string& key, const std::string& value);
4848

4949
/*!
5050
* \brief Get the value of a setting.

src/settings/Settings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Settings::Settings()
4141
parent = nullptr; // Needs to be properly initialised because we check against this if the parent is not set.
4242
}
4343

44-
void Settings::add(const std::string& key, const std::string value)
44+
void Settings::add(const std::string& key, const std::string& value)
4545
{
4646
if (settings.find(key) != settings.end()) // Already exists.
4747
{

0 commit comments

Comments
 (0)