Skip to content

Commit

Permalink
Merge pull request #3115 from pljones/options/pass-commandline-by-ref…
Browse files Browse the repository at this point in the history
…erence

Refactor: Pass "CommandLineOptions" to CSettings::Load by reference
  • Loading branch information
pljones authored Sep 27, 2023
2 parents f538b22 + 18e235e commit a9b5475
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 a9b5475

Please sign in to comment.