Skip to content

Commit

Permalink
Pass "CommandLineOptions" to CSettings::Load by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pljones committed Sep 27, 2023
1 parent f538b22 commit 18e235e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "settings.h"

/* Implementation *************************************************************/
void CSettings::Load ( const QList<QString> CommandLineOptions )
void CSettings::Load ( const QList<QString>& CommandLineOptions )
{
// prepare file name for loading initialization data from XML file and read
// data from file if possible
Expand Down
2 changes: 1 addition & 1 deletion src/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CSettings : public QObject
QObject::connect ( QCoreApplication::instance(), &QCoreApplication::aboutToQuit, this, &CSettings::OnAboutToQuit );
}

void Load ( const QList<QString> CommandLineOptions );
void Load ( const QList<QString>& CommandLineOptions );
void Save();

// common settings
Expand Down

0 comments on commit 18e235e

Please sign in to comment.