mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-02 05:02:33 -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
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue