summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-21 01:59:59 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-21 02:03:07 (GMT)
commit8948afb91b52b237cb2c49d47c595490f853617a (patch)
tree0097166abe4bef3a0145e7317f3114737d09e659
parent56c850054debe68a920d94fe712af2f69867d071 (diff)
Pass more arguments of enum type by value
-rw-r--r--src/lib/marble/geodata/data/GeoDataBalloonStyle.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataBalloonStyle.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataColorStyle.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataColorStyle.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataItemIcon.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataItemIcon.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataListStyle.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataListStyle.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataSimpleField.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataSimpleField.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataTourControl.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataTourControl.h2
12 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/marble/geodata/data/GeoDataBalloonStyle.cpp b/src/lib/marble/geodata/data/GeoDataBalloonStyle.cpp
index 53d3815..023af74 100644
--- a/src/lib/marble/geodata/data/GeoDataBalloonStyle.cpp
+++ b/src/lib/marble/geodata/data/GeoDataBalloonStyle.cpp
@@ -110,7 +110,7 @@ GeoDataBalloonStyle::DisplayMode GeoDataBalloonStyle::displayMode() const
return d->m_mode;
}
-void GeoDataBalloonStyle::setDisplayMode( const DisplayMode &mode )
+void GeoDataBalloonStyle::setDisplayMode(DisplayMode mode)
{
d->m_mode = mode;
}
diff --git a/src/lib/marble/geodata/data/GeoDataBalloonStyle.h b/src/lib/marble/geodata/data/GeoDataBalloonStyle.h
index 6ad750d..0566a11 100644
--- a/src/lib/marble/geodata/data/GeoDataBalloonStyle.h
+++ b/src/lib/marble/geodata/data/GeoDataBalloonStyle.h
@@ -52,7 +52,7 @@ public:
void setText( const QString &text );
DisplayMode displayMode() const;
- void setDisplayMode( const DisplayMode &mode );
+ void setDisplayMode(DisplayMode mode );
virtual void pack( QDataStream& stream ) const;
diff --git a/src/lib/marble/geodata/data/GeoDataColorStyle.cpp b/src/lib/marble/geodata/data/GeoDataColorStyle.cpp
index bfe4920..d339fca 100644
--- a/src/lib/marble/geodata/data/GeoDataColorStyle.cpp
+++ b/src/lib/marble/geodata/data/GeoDataColorStyle.cpp
@@ -107,7 +107,7 @@ QColor GeoDataColorStyle::paintedColor() const
return d->m_colorMode == Normal ? d->m_color : d->m_randomColor;
}
-void GeoDataColorStyle::setColorMode( const ColorMode &colorMode )
+void GeoDataColorStyle::setColorMode(ColorMode colorMode)
{
d->m_colorMode = colorMode;
}
diff --git a/src/lib/marble/geodata/data/GeoDataColorStyle.h b/src/lib/marble/geodata/data/GeoDataColorStyle.h
index 2d0435a..7eb441b 100644
--- a/src/lib/marble/geodata/data/GeoDataColorStyle.h
+++ b/src/lib/marble/geodata/data/GeoDataColorStyle.h
@@ -89,7 +89,7 @@ class GEODATA_EXPORT GeoDataColorStyle : public GeoDataObject
* @brief Set a new color mode
* @param colorMode the new color mode value
*/
- void setColorMode( const ColorMode &colorMode );
+ void setColorMode(ColorMode colorMode);
/// Return the color mode
ColorMode colorMode() const;
diff --git a/src/lib/marble/geodata/data/GeoDataItemIcon.cpp b/src/lib/marble/geodata/data/GeoDataItemIcon.cpp
index 629ff55..6c9bbf0 100644
--- a/src/lib/marble/geodata/data/GeoDataItemIcon.cpp
+++ b/src/lib/marble/geodata/data/GeoDataItemIcon.cpp
@@ -79,7 +79,7 @@ GeoDataItemIcon::ItemIconStates GeoDataItemIcon::state() const
return d->m_state;
}
-void GeoDataItemIcon::setState( const ItemIconStates &state )
+void GeoDataItemIcon::setState(ItemIconStates state)
{
d->m_state = state;
}
diff --git a/src/lib/marble/geodata/data/GeoDataItemIcon.h b/src/lib/marble/geodata/data/GeoDataItemIcon.h
index c23839d..bf4920c 100644
--- a/src/lib/marble/geodata/data/GeoDataItemIcon.h
+++ b/src/lib/marble/geodata/data/GeoDataItemIcon.h
@@ -50,7 +50,7 @@ public:
Q_DECLARE_FLAGS( ItemIconStates, ItemIconState )
ItemIconStates state() const;
- void setState( const ItemIconStates &state );
+ void setState(ItemIconStates state);
QString iconPath() const;
void setIconPath( const QString &path );
diff --git a/src/lib/marble/geodata/data/GeoDataListStyle.cpp b/src/lib/marble/geodata/data/GeoDataListStyle.cpp
index 319876c..ed031af 100644
--- a/src/lib/marble/geodata/data/GeoDataListStyle.cpp
+++ b/src/lib/marble/geodata/data/GeoDataListStyle.cpp
@@ -95,7 +95,7 @@ GeoDataListStyle::ListItemType GeoDataListStyle::listItemType() const
return d->m_listItemType;
}
-void GeoDataListStyle::setListItemType( const ListItemType &type )
+void GeoDataListStyle::setListItemType(ListItemType type)
{
d->m_listItemType = type;
}
diff --git a/src/lib/marble/geodata/data/GeoDataListStyle.h b/src/lib/marble/geodata/data/GeoDataListStyle.h
index f3b9344..bf8e518 100644
--- a/src/lib/marble/geodata/data/GeoDataListStyle.h
+++ b/src/lib/marble/geodata/data/GeoDataListStyle.h
@@ -48,7 +48,7 @@ public:
};
ListItemType listItemType() const;
- void setListItemType( const ListItemType &type );
+ void setListItemType(ListItemType type);
QColor backgroundColor() const;
void setBackgroundColor( const QColor &color );
diff --git a/src/lib/marble/geodata/data/GeoDataSimpleField.cpp b/src/lib/marble/geodata/data/GeoDataSimpleField.cpp
index bc3af2f..4b886a6 100644
--- a/src/lib/marble/geodata/data/GeoDataSimpleField.cpp
+++ b/src/lib/marble/geodata/data/GeoDataSimpleField.cpp
@@ -62,7 +62,7 @@ GeoDataSimpleField::SimpleFieldType GeoDataSimpleField::type() const
return d->m_type;
}
-void GeoDataSimpleField::setType( const SimpleFieldType& type )
+void GeoDataSimpleField::setType(SimpleFieldType type)
{
d->m_type = type;
}
diff --git a/src/lib/marble/geodata/data/GeoDataSimpleField.h b/src/lib/marble/geodata/data/GeoDataSimpleField.h
index d42c3b6..6d76236 100644
--- a/src/lib/marble/geodata/data/GeoDataSimpleField.h
+++ b/src/lib/marble/geodata/data/GeoDataSimpleField.h
@@ -54,7 +54,7 @@ public:
* @brief Sets the value of type attribute
* @param type The of type attribute
*/
- void setType( const SimpleFieldType& type );
+ void setType(SimpleFieldType type);
/*
* @brief Returns the value of name attribute of simple field
diff --git a/src/lib/marble/geodata/data/GeoDataTourControl.cpp b/src/lib/marble/geodata/data/GeoDataTourControl.cpp
index a400903..49d30fa 100644
--- a/src/lib/marble/geodata/data/GeoDataTourControl.cpp
+++ b/src/lib/marble/geodata/data/GeoDataTourControl.cpp
@@ -44,7 +44,7 @@ GeoDataTourControl::PlayMode GeoDataTourControl::playMode() const
return m_playMode;
}
-void GeoDataTourControl::setPlayMode(const PlayMode &mode)
+void GeoDataTourControl::setPlayMode(PlayMode mode)
{
m_playMode = mode;
}
diff --git a/src/lib/marble/geodata/data/GeoDataTourControl.h b/src/lib/marble/geodata/data/GeoDataTourControl.h
index 2f6c262..0066892 100644
--- a/src/lib/marble/geodata/data/GeoDataTourControl.h
+++ b/src/lib/marble/geodata/data/GeoDataTourControl.h
@@ -32,7 +32,7 @@ public:
const char *nodeType() const;
PlayMode playMode() const;
- void setPlayMode(const PlayMode &mode);
+ void setPlayMode(PlayMode mode);
private:
PlayMode m_playMode;