Skip to content

Commit a9b5475

Browse files
authored
Merge pull request #3115 from pljones/options/pass-commandline-by-reference
Refactor: Pass "CommandLineOptions" to CSettings::Load by reference
2 parents f538b22 + 18e235e commit a9b5475

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/settings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "settings.h"
2626

2727
/* Implementation *************************************************************/
28-
void CSettings::Load ( const QList<QString> CommandLineOptions )
28+
void CSettings::Load ( const QList<QString>& CommandLineOptions )
2929
{
3030
// prepare file name for loading initialization data from XML file and read
3131
// data from file if possible

src/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class CSettings : public QObject
5252
QObject::connect ( QCoreApplication::instance(), &QCoreApplication::aboutToQuit, this, &CSettings::OnAboutToQuit );
5353
}
5454

55-
void Load ( const QList<QString> CommandLineOptions );
55+
void Load ( const QList<QString>& CommandLineOptions );
5656
void Save();
5757

5858
// common settings

0 commit comments

Comments
 (0)