mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
5554f4a739
commit
589e61ff67
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user