From 18e235e2feaa23e2d00e4d33fa0ac9f5fcc7a29e Mon Sep 17 00:00:00 2001 From: Peter L Jones Date: Wed, 14 Jun 2023 18:07:54 +0100 Subject: [PATCH] Pass "CommandLineOptions" to CSettings::Load by reference --- src/settings.cpp | 2 +- src/settings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index 1eb9541dd6..723dec93c6 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -25,7 +25,7 @@ #include "settings.h" /* Implementation *************************************************************/ -void CSettings::Load ( const QList CommandLineOptions ) +void CSettings::Load ( const QList& CommandLineOptions ) { // prepare file name for loading initialization data from XML file and read // data from file if possible diff --git a/src/settings.h b/src/settings.h index 6e3bd758c2..f378f5c010 100644 --- a/src/settings.h +++ b/src/settings.h @@ -52,7 +52,7 @@ class CSettings : public QObject QObject::connect ( QCoreApplication::instance(), &QCoreApplication::aboutToQuit, this, &CSettings::OnAboutToQuit ); } - void Load ( const QList CommandLineOptions ); + void Load ( const QList& CommandLineOptions ); void Save(); // common settings