summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-27 11:26:16 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-27 11:26:16 (GMT)
commit6fee682460dcd5197c4867f0d721a8dedb3562ee (patch)
treed72f6a544b6bc6a19f531df72a357bcc0aab539e
parenta111b7ee89986d87f2d0d0519fe0222c035f49eb (diff)
Pass QHash<QString,QVariant> as const ref argument
-rw-r--r--src/lib/marble/AbstractDataPluginModel.cpp2
-rw-r--r--src/lib/marble/AbstractDataPluginModel.h2
-rw-r--r--src/plugins/render/opencaching/OpenCachingPlugin.cpp2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigAbstractItem.cpp2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigAbstractItem.h2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigLeafItem.cpp2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigLeafItem.h2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigModel.cpp2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigModel.h2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigNodeItem.cpp2
-rw-r--r--src/plugins/render/satellites/SatellitesConfigNodeItem.h2
11 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/marble/AbstractDataPluginModel.cpp b/src/lib/marble/AbstractDataPluginModel.cpp
index 94c815b..036d0e0 100644
--- a/src/lib/marble/AbstractDataPluginModel.cpp
+++ b/src/lib/marble/AbstractDataPluginModel.cpp
@@ -563,7 +563,7 @@ bool AbstractDataPluginModel::itemExists( const QString& id ) const
return findItem( id );
}
-void AbstractDataPluginModel::setItemSettings( QHash<QString,QVariant> itemSettings )
+void AbstractDataPluginModel::setItemSettings(const QHash<QString, QVariant> &itemSettings)
{
d->m_itemSettings = itemSettings;
}
diff --git a/src/lib/marble/AbstractDataPluginModel.h b/src/lib/marble/AbstractDataPluginModel.h
index 784524b..03b442e 100644
--- a/src/lib/marble/AbstractDataPluginModel.h
+++ b/src/lib/marble/AbstractDataPluginModel.h
@@ -75,7 +75,7 @@ class MARBLE_EXPORT AbstractDataPluginModel : public QObject
* Sets the settings for all items before painting. This ensures that all items react on
* changed settings.
*/
- void setItemSettings( QHash<QString,QVariant> itemSettings );
+ void setItemSettings(const QHash<QString, QVariant> &itemSettings);
virtual void setFavoriteItems( const QStringList& list );
QStringList favoriteItems() const;
diff --git a/src/plugins/render/opencaching/OpenCachingPlugin.cpp b/src/plugins/render/opencaching/OpenCachingPlugin.cpp
index 9a75ac9..c8fc7c3 100644
--- a/src/plugins/render/opencaching/OpenCachingPlugin.cpp
+++ b/src/plugins/render/opencaching/OpenCachingPlugin.cpp
@@ -96,7 +96,7 @@ QHash<QString,QVariant> OpenCachingPlugin::settings() const
return m_settings;
}
-void OpenCachingPlugin::setSettings( QHash<QString,QVariant> settings )
+void OpenCachingPlugin::setSettings(const QHash<QString, QVariant> &settings)
{
if ( !settings.contains( "numResults" ) ) {
settings.insert( "numResults", numberOfItemsOnScreen );
diff --git a/src/plugins/render/satellites/SatellitesConfigAbstractItem.cpp b/src/plugins/render/satellites/SatellitesConfigAbstractItem.cpp
index d8dede7..b99ff3e 100644
--- a/src/plugins/render/satellites/SatellitesConfigAbstractItem.cpp
+++ b/src/plugins/render/satellites/SatellitesConfigAbstractItem.cpp
@@ -51,7 +51,7 @@ void SatellitesConfigAbstractItem::setParent( SatellitesConfigAbstractItem *pare
m_parent = parent;
}
-void SatellitesConfigAbstractItem::loadSettings( QHash<QString, QVariant> settings )
+void SatellitesConfigAbstractItem::loadSettings(const QHash<QString, QVariant> &settings)
{
Q_UNUSED( settings );
}
diff --git a/src/plugins/render/satellites/SatellitesConfigAbstractItem.h b/src/plugins/render/satellites/SatellitesConfigAbstractItem.h
index abd00db..bcfb150 100644
--- a/src/plugins/render/satellites/SatellitesConfigAbstractItem.h
+++ b/src/plugins/render/satellites/SatellitesConfigAbstractItem.h
@@ -37,7 +37,7 @@ public:
SatellitesConfigAbstractItem *parent() const;
void setParent( SatellitesConfigAbstractItem *parent );
- virtual void loadSettings( QHash<QString, QVariant> settings );
+ virtual void loadSettings(const QHash<QString, QVariant> &settings);
virtual QVariant data( int column, int role ) const;
virtual bool setData( int column, int role, const QVariant &data );
diff --git a/src/plugins/render/satellites/SatellitesConfigLeafItem.cpp b/src/plugins/render/satellites/SatellitesConfigLeafItem.cpp
index 779b152..1a5241e 100644
--- a/src/plugins/render/satellites/SatellitesConfigLeafItem.cpp
+++ b/src/plugins/render/satellites/SatellitesConfigLeafItem.cpp
@@ -27,7 +27,7 @@ SatellitesConfigLeafItem::~SatellitesConfigLeafItem()
{
}
-void SatellitesConfigLeafItem::loadSettings( QHash<QString, QVariant> settings )
+void SatellitesConfigLeafItem::loadSettings(const QHash<QString, QVariant> &settings)
{
QStringList idList = settings.value( "idList" ).toStringList();
m_isChecked = idList.contains( m_id );
diff --git a/src/plugins/render/satellites/SatellitesConfigLeafItem.h b/src/plugins/render/satellites/SatellitesConfigLeafItem.h
index 106bbba..cf2ff7b 100644
--- a/src/plugins/render/satellites/SatellitesConfigLeafItem.h
+++ b/src/plugins/render/satellites/SatellitesConfigLeafItem.h
@@ -23,7 +23,7 @@ public:
const QString &id );
~SatellitesConfigLeafItem();
- void loadSettings( QHash<QString, QVariant> settings );
+ void loadSettings(const QHash<QString, QVariant> &settings) override;
QVariant data( int column, int role ) const;
bool setData(int column, int role, const QVariant& data);
diff --git a/src/plugins/render/satellites/SatellitesConfigModel.cpp b/src/plugins/render/satellites/SatellitesConfigModel.cpp
index 7eb07bb..275b69c 100644
--- a/src/plugins/render/satellites/SatellitesConfigModel.cpp
+++ b/src/plugins/render/satellites/SatellitesConfigModel.cpp
@@ -45,7 +45,7 @@ QStringList SatellitesConfigModel::urlList() const
.toStringList();
}
-void SatellitesConfigModel::loadSettings( QHash<QString, QVariant> settings)
+void SatellitesConfigModel::loadSettings(const QHash<QString, QVariant> &settings)
{
m_rootItem->loadSettings( settings );
}
diff --git a/src/plugins/render/satellites/SatellitesConfigModel.h b/src/plugins/render/satellites/SatellitesConfigModel.h
index 40548cc..b0af0fc 100644
--- a/src/plugins/render/satellites/SatellitesConfigModel.h
+++ b/src/plugins/render/satellites/SatellitesConfigModel.h
@@ -24,7 +24,7 @@ public:
explicit SatellitesConfigModel( QObject *parent = 0 );
~SatellitesConfigModel();
- void loadSettings( QHash<QString, QVariant> settings );
+ void loadSettings(const QHash<QString, QVariant> &settings);
void appendChild( SatellitesConfigAbstractItem *child );
void clear();
diff --git a/src/plugins/render/satellites/SatellitesConfigNodeItem.cpp b/src/plugins/render/satellites/SatellitesConfigNodeItem.cpp
index 45741d9..11108e3 100644
--- a/src/plugins/render/satellites/SatellitesConfigNodeItem.cpp
+++ b/src/plugins/render/satellites/SatellitesConfigNodeItem.cpp
@@ -27,7 +27,7 @@ SatellitesConfigNodeItem::~SatellitesConfigNodeItem()
{
}
-void SatellitesConfigNodeItem::loadSettings(QHash< QString, QVariant > settings)
+void SatellitesConfigNodeItem::loadSettings(const QHash<QString, QVariant> &settings)
{
foreach( SatellitesConfigAbstractItem *item, m_children ) {
item->loadSettings( settings );
diff --git a/src/plugins/render/satellites/SatellitesConfigNodeItem.h b/src/plugins/render/satellites/SatellitesConfigNodeItem.h
index b03839f..4955628 100644
--- a/src/plugins/render/satellites/SatellitesConfigNodeItem.h
+++ b/src/plugins/render/satellites/SatellitesConfigNodeItem.h
@@ -23,7 +23,7 @@ public:
explicit SatellitesConfigNodeItem( const QString &name );
~SatellitesConfigNodeItem();
- void loadSettings( QHash<QString, QVariant> settings );
+ void loadSettings(const QHash<QString, QVariant> &settings) override;
QVariant data( int column, int role ) const;
bool setData(int column, int role, const QVariant& data);