Fix CppCheck in rsettings.cpp

/retroshare-gui/src/gui/settings/rsettings.cpp:43: warning:
Cppcheck(passedByValue): Function parameter 'fileName' should be passed
by reference.
This commit is contained in:
Phenom 2017-08-13 20:44:34 +02:00 committed by csoler
parent 5554f4a739
commit 589e61ff67
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ RSettings::RSettings(const QString settingsGroup)
beginGroup(settingsGroup);
}
RSettings::RSettings(std::string fileName, const QString settingsGroup)
RSettings::RSettings(const std::string &fileName, const QString settingsGroup)
: QSettings(QString::fromStdString(fileName), QSettings::IniFormat)
{
m_bValid = true;

View File

@ -40,7 +40,7 @@ public:
/** Default constructor. The optional parameter <b>group</b> can be used to
* set a prefix that will be prepended to keys specified to RSettings in
* value() and setValue(). */
RSettings(std::string fileName, const QString group = QString());
RSettings(const std::string &fileName, const QString group = QString());
/** Resets all settings. */
static void reset();