summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <[email protected]>2016-03-20 18:19:01 +0100
committerDennis Nienhüser <[email protected]>2016-03-20 18:26:25 +0100
commit5eb4a5079dd2524e35e39a14ae634279556768d0 (patch)
treef206d62f3a9274ecb81c74e86b75ecb2d7ed6f1c
parent486f6181d6fef15c9b6c72504e3588be502bea80 (diff)
Mark ctors that take one argument explicit (cppcheck)
-rw-r--r--src/lib/astro/attlib.h2
-rw-r--r--src/lib/marble/AbstractWorkerThread.cpp2
-rw-r--r--src/lib/marble/AddLinkDialog.h2
-rw-r--r--src/lib/marble/AnimatedUpdateTrack.h2
-rw-r--r--src/lib/marble/ClipPainter.cpp2
-rw-r--r--src/lib/marble/FileViewWidget.cpp2
-rw-r--r--src/lib/marble/GenericScanlineTextureMapper.h2
-rw-r--r--src/lib/marble/GeoGraphicsScene.cpp2
-rw-r--r--src/lib/marble/LatLonEdit.cpp8
-rw-r--r--src/lib/marble/MapViewItemDelegate.h2
-rw-r--r--src/lib/marble/MarbleLineEdit.cpp2
-rw-r--r--src/lib/marble/MarbleMap.cpp2
-rw-r--r--src/lib/marble/MarblePhysics.cpp2
-rw-r--r--src/lib/marble/MarblePluginSettingsWidget.cpp2
-rw-r--r--src/lib/marble/MarbleWidget.cpp4
-rw-r--r--src/lib/marble/MarbleWidgetInputHandler.cpp2
-rw-r--r--src/lib/marble/MovieCapture.cpp2
-rw-r--r--src/lib/marble/NewstuffModel.cpp2
-rw-r--r--src/lib/marble/PlacemarkEditHeader.cpp2
-rw-r--r--src/lib/marble/PlacemarkPositionProviderPlugin.h2
-rw-r--r--src/lib/marble/PlaybackAnimatedUpdateItem.h2
-rw-r--r--src/lib/marble/PlaybackFlyToItem.h2
-rw-r--r--src/lib/marble/PlaybackSoundCueItem.h2
-rw-r--r--src/lib/marble/PlaybackTourControlItem.h2
-rw-r--r--src/lib/marble/PlaybackWaitItem.h2
-rw-r--r--src/lib/marble/RouteSimulationPositionProviderPlugin.h2
-rw-r--r--src/lib/marble/SoundTrack.h2
-rw-r--r--src/lib/marble/StackedTileLoader.cpp2
-rw-r--r--src/lib/marble/TileCreator.cpp2
-rw-r--r--src/lib/marble/TourWidget.cpp2
-rw-r--r--src/lib/marble/declarative/DeclarativeDataPlugin.cpp2
-rw-r--r--src/lib/marble/declarative/MarbleQuickItem.cpp2
-rw-r--r--src/lib/marble/declarative/MarbleQuickItem.h2
-rw-r--r--src/lib/marble/declarative/Routing.cpp2
-rw-r--r--src/lib/marble/declarative/SearchBackend.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataFeature.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataLineString.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataSchema.h2
-rw-r--r--src/lib/marble/layers/GeometryLayer.cpp2
-rw-r--r--src/lib/marble/projections/AbstractProjection.h2
-rw-r--r--src/lib/marble/projections/AzimuthalEquidistantProjection.h2
-rw-r--r--src/lib/marble/projections/AzimuthalProjection.h2
-rw-r--r--src/lib/marble/projections/CylindricalProjection.h2
-rw-r--r--src/lib/marble/projections/GnomonicProjection.h2
-rw-r--r--src/lib/marble/projections/LambertAzimuthalProjection.h2
-rw-r--r--src/lib/marble/projections/SphericalProjection.h2
-rw-r--r--src/lib/marble/projections/StereographicProjection.h2
-rw-r--r--src/lib/marble/projections/VerticalPerspectiveProjection.h2
-rw-r--r--src/lib/marble/routing/RoutingInputWidget.cpp2
-rw-r--r--src/lib/marble/routing/RoutingModel.cpp2
-rw-r--r--src/lib/marble/routing/SpeakersModel.cpp2
-rw-r--r--src/lib/marble/routing/VoiceNavigationModel.cpp2
52 files changed, 56 insertions, 56 deletions
diff --git a/src/lib/astro/attlib.h b/src/lib/astro/attlib.h
index ce42d46..4c1bdba 100644
--- a/src/lib/astro/attlib.h
+++ b/src/lib/astro/attlib.h
@@ -66,7 +66,7 @@ class ASTROLIB_EXPORT Mat3
public:
double m[3][3];
- Mat3(double x=0);
+ explicit Mat3(double x=0);
Mat3 (const Mat3& c);
void assign (double x11, double x12, double x13, double x21, double x22,
double x23, double x31, double x32, double x33);
diff --git a/src/lib/marble/AbstractWorkerThread.cpp b/src/lib/marble/AbstractWorkerThread.cpp
index 4397709..b8d17ec 100644
--- a/src/lib/marble/AbstractWorkerThread.cpp
+++ b/src/lib/marble/AbstractWorkerThread.cpp
@@ -24,7 +24,7 @@ const int WAIT_TIME = 100;
class AbstractWorkerThreadPrivate
{
public:
- AbstractWorkerThreadPrivate( AbstractWorkerThread *parent )
+ explicit AbstractWorkerThreadPrivate( AbstractWorkerThread *parent )
: m_running( false ),
m_end( false ),
m_parent( parent )
diff --git a/src/lib/marble/AddLinkDialog.h b/src/lib/marble/AddLinkDialog.h
index 38af97c..4f4ecad 100644
--- a/src/lib/marble/AddLinkDialog.h
+++ b/src/lib/marble/AddLinkDialog.h
@@ -23,7 +23,7 @@ class MARBLE_EXPORT AddLinkDialog : public QDialog
Q_OBJECT
public:
- AddLinkDialog(QWidget *parent = 0 );
+ explicit AddLinkDialog(QWidget *parent = 0 );
~AddLinkDialog();
QString name() const;
QString url() const;
diff --git a/src/lib/marble/AnimatedUpdateTrack.h b/src/lib/marble/AnimatedUpdateTrack.h
index 4168896..befd3ee 100644
--- a/src/lib/marble/AnimatedUpdateTrack.h
+++ b/src/lib/marble/AnimatedUpdateTrack.h
@@ -24,7 +24,7 @@ class AnimatedUpdateTrack : public QObject
Q_OBJECT
public:
- AnimatedUpdateTrack( PlaybackAnimatedUpdateItem* item );
+ explicit AnimatedUpdateTrack( PlaybackAnimatedUpdateItem* item );
void setDelayBeforeTrackStarts( double delay );
double delayBeforeTrackStarts() const;
void play();
diff --git a/src/lib/marble/ClipPainter.cpp b/src/lib/marble/ClipPainter.cpp
index 1e6dcd5..50e9243e 100644
--- a/src/lib/marble/ClipPainter.cpp
+++ b/src/lib/marble/ClipPainter.cpp
@@ -24,7 +24,7 @@ namespace Marble
class ClipPainterPrivate
{
public:
- ClipPainterPrivate( ClipPainter * parent );
+ explicit ClipPainterPrivate( ClipPainter * parent );
ClipPainter * q;
diff --git a/src/lib/marble/FileViewWidget.cpp b/src/lib/marble/FileViewWidget.cpp
index 0df8bdd..be534e8 100644
--- a/src/lib/marble/FileViewWidget.cpp
+++ b/src/lib/marble/FileViewWidget.cpp
@@ -40,7 +40,7 @@ class FileViewWidgetPrivate
{
public:
- FileViewWidgetPrivate( FileViewWidget *parent );
+ explicit FileViewWidgetPrivate( FileViewWidget *parent );
void setTreeModel( GeoDataTreeModel *model );
void setFileManager( FileManager *manager );
diff --git a/src/lib/marble/GenericScanlineTextureMapper.h b/src/lib/marble/GenericScanlineTextureMapper.h
index 196c14d..6f99c16 100644
--- a/src/lib/marble/GenericScanlineTextureMapper.h
+++ b/src/lib/marble/GenericScanlineTextureMapper.h
@@ -28,7 +28,7 @@ class StackedTileLoader;
class GenericScanlineTextureMapper : public TextureMapperInterface
{
public:
- GenericScanlineTextureMapper( StackedTileLoader *tileLoader );
+ explicit GenericScanlineTextureMapper( StackedTileLoader *tileLoader );
virtual void mapTexture( GeoPainter *painter,
const ViewportParams *viewport,
diff --git a/src/lib/marble/GeoGraphicsScene.cpp b/src/lib/marble/GeoGraphicsScene.cpp
index 4453865..dbb7792 100644
--- a/src/lib/marble/GeoGraphicsScene.cpp
+++ b/src/lib/marble/GeoGraphicsScene.cpp
@@ -32,7 +32,7 @@ class GeoGraphicsScenePrivate
{
public:
GeoGraphicsScene *q;
- GeoGraphicsScenePrivate(GeoGraphicsScene *parent) :
+ explicit GeoGraphicsScenePrivate(GeoGraphicsScene *parent) :
q(parent)
{
}
diff --git a/src/lib/marble/LatLonEdit.cpp b/src/lib/marble/LatLonEdit.cpp
index 128737d..28fe7cc 100644
--- a/src/lib/marble/LatLonEdit.cpp
+++ b/src/lib/marble/LatLonEdit.cpp
@@ -40,7 +40,7 @@ class LatLonEditPrivate;
class AbstractInputHandler // TODO: better name
{
protected:
- AbstractInputHandler(LatLonEditPrivate *ui) : m_ui(ui) {}
+ explicit AbstractInputHandler(LatLonEditPrivate *ui) : m_ui(ui) {}
public:
virtual ~AbstractInputHandler() {}
@@ -60,7 +60,7 @@ protected:
class DecimalInputHandler : public AbstractInputHandler
{
public:
- DecimalInputHandler(LatLonEditPrivate *ui) : AbstractInputHandler(ui) {}
+ explicit DecimalInputHandler(LatLonEditPrivate *ui) : AbstractInputHandler(ui) {}
public: // AbstractInputHandler API
virtual void setupUi();
virtual void setupMinMax(Dimension dimension);
@@ -74,7 +74,7 @@ public: // AbstractInputHandler API
class DMSInputHandler : public AbstractInputHandler
{
public:
- DMSInputHandler(LatLonEditPrivate *ui) : AbstractInputHandler(ui) {}
+ explicit DMSInputHandler(LatLonEditPrivate *ui) : AbstractInputHandler(ui) {}
public: // AbstractInputHandler API
virtual void setupUi();
virtual void setupMinMax(Dimension dimension);
@@ -88,7 +88,7 @@ public: // AbstractInputHandler API
class DMInputHandler : public AbstractInputHandler
{
public:
- DMInputHandler(LatLonEditPrivate *ui) : AbstractInputHandler(ui) {}
+ explicit DMInputHandler(LatLonEditPrivate *ui) : AbstractInputHandler(ui) {}
public: // AbstractInputHandler API
virtual void setupUi();
virtual void setupMinMax(Dimension dimension);
diff --git a/src/lib/marble/MapViewItemDelegate.h b/src/lib/marble/MapViewItemDelegate.h
index 2cbfe0c..cef1421 100644
--- a/src/lib/marble/MapViewItemDelegate.h
+++ b/src/lib/marble/MapViewItemDelegate.h
@@ -31,7 +31,7 @@ class MapViewItemDelegate : public QStyledItemDelegate
Q_OBJECT
public:
- MapViewItemDelegate( QListView* view );
+ explicit MapViewItemDelegate( QListView* view );
void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
QSize sizeHint( const QStyleOptionViewItem &option, const QModelIndex &index ) const;
diff --git a/src/lib/marble/MarbleLineEdit.cpp b/src/lib/marble/MarbleLineEdit.cpp
index b741702..495b438 100644
--- a/src/lib/marble/MarbleLineEdit.cpp
+++ b/src/lib/marble/MarbleLineEdit.cpp
@@ -45,7 +45,7 @@ public:
int m_iconSize;
- MarbleLineEditPrivate( MarbleLineEdit* parent );
+ explicit MarbleLineEditPrivate( MarbleLineEdit* parent );
void createProgressAnimation();
};
diff --git a/src/lib/marble/MarbleMap.cpp b/src/lib/marble/MarbleMap.cpp
index 1fca75a..b60e08c 100644
--- a/src/lib/marble/MarbleMap.cpp
+++ b/src/lib/marble/MarbleMap.cpp
@@ -79,7 +79,7 @@ namespace Marble
class MarbleMap::CustomPaintLayer : public LayerInterface
{
public:
- CustomPaintLayer( MarbleMap *map )
+ explicit CustomPaintLayer( MarbleMap *map )
: m_map( map )
{
}
diff --git a/src/lib/marble/MarblePhysics.cpp b/src/lib/marble/MarblePhysics.cpp
index dd87771..3e9889f 100644
--- a/src/lib/marble/MarblePhysics.cpp
+++ b/src/lib/marble/MarblePhysics.cpp
@@ -35,7 +35,7 @@ public:
qreal m_planetRadius;
- MarblePhysicsPrivate( MarbleAbstractPresenter *presenter )
+ explicit MarblePhysicsPrivate( MarbleAbstractPresenter *presenter )
: m_presenter( presenter ),
m_mode( Instant ),
m_planetRadius( EARTH_RADIUS )
diff --git a/src/lib/marble/MarblePluginSettingsWidget.cpp b/src/lib/marble/MarblePluginSettingsWidget.cpp
index 7899df9..3664a3b 100644
--- a/src/lib/marble/MarblePluginSettingsWidget.cpp
+++ b/src/lib/marble/MarblePluginSettingsWidget.cpp
@@ -28,7 +28,7 @@ namespace Marble
class MarblePluginSettingsWidgetPrivate : public Ui::MarblePluginSettingsWidget
{
public:
- MarblePluginSettingsWidgetPrivate( Marble::MarblePluginSettingsWidget *parent ) :
+ explicit MarblePluginSettingsWidgetPrivate( Marble::MarblePluginSettingsWidget *parent ) :
q( parent ),
m_itemDelegate( 0 )
{}
diff --git a/src/lib/marble/MarbleWidget.cpp b/src/lib/marble/MarbleWidget.cpp
index a929f6b..83053d6 100644
--- a/src/lib/marble/MarbleWidget.cpp
+++ b/src/lib/marble/MarbleWidget.cpp
@@ -53,7 +53,7 @@ namespace Marble
class MarbleWidget::CustomPaintLayer : public LayerInterface
{
public:
- CustomPaintLayer( MarbleWidget *widget )
+ explicit CustomPaintLayer( MarbleWidget *widget )
: m_widget( widget )
{
}
@@ -87,7 +87,7 @@ class MarbleWidget::CustomPaintLayer : public LayerInterface
class MarbleWidgetPrivate
{
public:
- MarbleWidgetPrivate( MarbleWidget *parent ) :
+ explicit MarbleWidgetPrivate( MarbleWidget *parent ) :
m_widget( parent ),
m_model(),
m_map( &m_model ),
diff --git a/src/lib/marble/MarbleWidgetInputHandler.cpp b/src/lib/marble/MarbleWidgetInputHandler.cpp
index 5c69004..969865e 100644
--- a/src/lib/marble/MarbleWidgetInputHandler.cpp
+++ b/src/lib/marble/MarbleWidgetInputHandler.cpp
@@ -33,7 +33,7 @@ class MarbleWidgetInputHandlerPrivate
class MarbleWidgetSelectionRubber : public AbstractSelectionRubber
{
public:
- MarbleWidgetSelectionRubber(MarbleWidget *widget)
+ explicit MarbleWidgetSelectionRubber(MarbleWidget *widget)
: m_rubberBand(QRubberBand::Rectangle, widget)
{
m_rubberBand.hide();
diff --git a/src/lib/marble/MovieCapture.cpp b/src/lib/marble/MovieCapture.cpp
index 7aed9ea..ddc6c73 100644
--- a/src/lib/marble/MovieCapture.cpp
+++ b/src/lib/marble/MovieCapture.cpp
@@ -22,7 +22,7 @@ namespace Marble
class MovieCapturePrivate
{
public:
- MovieCapturePrivate(MarbleWidget *widget) :
+ explicit MovieCapturePrivate(MarbleWidget *widget) :
marbleWidget(widget), method(MovieCapture::TimeDriven)
{}
diff --git a/src/lib/marble/NewstuffModel.cpp b/src/lib/marble/NewstuffModel.cpp
index 73d2be0..4548aa4 100644
--- a/src/lib/marble/NewstuffModel.cpp
+++ b/src/lib/marble/NewstuffModel.cpp
@@ -110,7 +110,7 @@ public:
QHash<int, QByteArray> m_roleNames;
- NewstuffModelPrivate( NewstuffModel* parent );
+ explicit NewstuffModelPrivate( NewstuffModel* parent );
QIcon preview( int index );
void setPreview( int index, const QIcon &previewIcon );
diff --git a/src/lib/marble/PlacemarkEditHeader.cpp b/src/lib/marble/PlacemarkEditHeader.cpp
index 893d051..03dee56 100644
--- a/src/lib/marble/PlacemarkEditHeader.cpp
+++ b/src/lib/marble/PlacemarkEditHeader.cpp
@@ -28,7 +28,7 @@ class PlacemarkEditHeaderPrivate : public Ui::PlacemarkEditHeaderPrivate
{
public:
- PlacemarkEditHeaderPrivate(PlacemarkEditHeader *_q);
+ explicit PlacemarkEditHeaderPrivate(PlacemarkEditHeader *_q);
~PlacemarkEditHeaderPrivate();
void init(QWidget* parent);
void setNotation(GeoDataCoordinates::Notation notation);
diff --git a/src/lib/marble/PlacemarkPositionProviderPlugin.h b/src/lib/marble/PlacemarkPositionProviderPlugin.h
index 7231d4d..c2d768c 100644
--- a/src/lib/marble/PlacemarkPositionProviderPlugin.h
+++ b/src/lib/marble/PlacemarkPositionProviderPlugin.h
@@ -30,7 +30,7 @@ class PlacemarkPositionProviderPlugin: public PositionProviderPlugin
Q_INTERFACES( Marble::PositionProviderPluginInterface )
public:
- PlacemarkPositionProviderPlugin( MarbleModel *marbleModel );
+ explicit PlacemarkPositionProviderPlugin( MarbleModel *marbleModel );
virtual QString name() const;
virtual QString nameId() const;
diff --git a/src/lib/marble/PlaybackAnimatedUpdateItem.h b/src/lib/marble/PlaybackAnimatedUpdateItem.h
index 5700d61..486ad4d 100644
--- a/src/lib/marble/PlaybackAnimatedUpdateItem.h
+++ b/src/lib/marble/PlaybackAnimatedUpdateItem.h
@@ -25,7 +25,7 @@ class PlaybackAnimatedUpdateItem : public PlaybackItem
{
Q_OBJECT
public:
- PlaybackAnimatedUpdateItem( GeoDataAnimatedUpdate *animatedUpdate );
+ explicit PlaybackAnimatedUpdateItem( GeoDataAnimatedUpdate *animatedUpdate );
const GeoDataAnimatedUpdate* animatedUpdate() const;
double duration() const;
void play();
diff --git a/src/lib/marble/PlaybackFlyToItem.h b/src/lib/marble/PlaybackFlyToItem.h
index 5de9ee2..e5fe7ff 100644
--- a/src/lib/marble/PlaybackFlyToItem.h
+++ b/src/lib/marble/PlaybackFlyToItem.h
@@ -21,7 +21,7 @@ class PlaybackFlyToItem : public PlaybackItem
{
Q_OBJECT
public:
- PlaybackFlyToItem( const GeoDataFlyTo* flyTo );
+ explicit PlaybackFlyToItem( const GeoDataFlyTo* flyTo );
const GeoDataFlyTo* flyTo() const;
double duration() const;
void play();
diff --git a/src/lib/marble/PlaybackSoundCueItem.h b/src/lib/marble/PlaybackSoundCueItem.h
index 0712240..2e60b9c 100644
--- a/src/lib/marble/PlaybackSoundCueItem.h
+++ b/src/lib/marble/PlaybackSoundCueItem.h
@@ -28,7 +28,7 @@ class PlaybackSoundCueItem : public PlaybackItem
{
Q_OBJECT
public:
- PlaybackSoundCueItem( const GeoDataSoundCue* soundCue );
+ explicit PlaybackSoundCueItem( const GeoDataSoundCue* soundCue );
const GeoDataSoundCue* soundCue() const;
double duration() const;
void play();
diff --git a/src/lib/marble/PlaybackTourControlItem.h b/src/lib/marble/PlaybackTourControlItem.h
index 3c58cd0..417908d 100644
--- a/src/lib/marble/PlaybackTourControlItem.h
+++ b/src/lib/marble/PlaybackTourControlItem.h
@@ -21,7 +21,7 @@ class GeoDataTourControl;
class PlaybackTourControlItem : public PlaybackItem
{
public:
- PlaybackTourControlItem( const GeoDataTourControl* tourControl );
+ explicit PlaybackTourControlItem( const GeoDataTourControl* tourControl );
const GeoDataTourControl* tourControl() const;
double duration() const;
void play();
diff --git a/src/lib/marble/PlaybackWaitItem.h b/src/lib/marble/PlaybackWaitItem.h
index 2e9b230..ae7a301 100644
--- a/src/lib/marble/PlaybackWaitItem.h
+++ b/src/lib/marble/PlaybackWaitItem.h
@@ -21,7 +21,7 @@ class PlaybackWaitItem : public PlaybackItem
{
Q_OBJECT
public:
- PlaybackWaitItem( const GeoDataWait* wait );
+ explicit PlaybackWaitItem( const GeoDataWait* wait );
const GeoDataWait* wait() const;
double duration() const;
void play();
diff --git a/src/lib/marble/RouteSimulationPositionProviderPlugin.h b/src/lib/marble/RouteSimulationPositionProviderPlugin.h
index 83e7ca7..f39b833 100644
--- a/src/lib/marble/RouteSimulationPositionProviderPlugin.h
+++ b/src/lib/marble/RouteSimulationPositionProviderPlugin.h
@@ -30,7 +30,7 @@ class RouteSimulationPositionProviderPlugin: public PositionProviderPlugin
Q_INTERFACES( Marble::PositionProviderPluginInterface )
public:
- RouteSimulationPositionProviderPlugin( MarbleModel *marbleModel );
+ explicit RouteSimulationPositionProviderPlugin( MarbleModel *marbleModel );
virtual ~RouteSimulationPositionProviderPlugin();
// Implementing PluginInterface
diff --git a/src/lib/marble/SoundTrack.h b/src/lib/marble/SoundTrack.h
index f64f9e9..859d374 100644
--- a/src/lib/marble/SoundTrack.h
+++ b/src/lib/marble/SoundTrack.h
@@ -24,7 +24,7 @@ class SoundTrack : public QObject
Q_OBJECT
public:
- SoundTrack( PlaybackSoundCueItem* item );
+ explicit SoundTrack( PlaybackSoundCueItem* item );
void setDelayBeforeTrackStarts( double delay );
double delayBeforeTrackStarts() const;
void play();
diff --git a/src/lib/marble/StackedTileLoader.cpp b/src/lib/marble/StackedTileLoader.cpp
index 390765c..2446aef 100644
--- a/src/lib/marble/StackedTileLoader.cpp
+++ b/src/lib/marble/StackedTileLoader.cpp
@@ -43,7 +43,7 @@ namespace Marble
class StackedTileLoaderPrivate
{
public:
- StackedTileLoaderPrivate( MergedLayerDecorator *mergedLayerDecorator )
+ explicit StackedTileLoaderPrivate( MergedLayerDecorator *mergedLayerDecorator )
: m_layerDecorator( mergedLayerDecorator )
{
m_tileCache.setMaxCost( 20000 * 1024 ); // Cache size measured in bytes
diff --git a/src/lib/marble/TileCreator.cpp b/src/lib/marble/TileCreator.cpp
index 4e38870..49d1463 100644
--- a/src/lib/marble/TileCreator.cpp
+++ b/src/lib/marble/TileCreator.cpp
@@ -71,7 +71,7 @@ class TileCreatorPrivate
class TileCreatorSourceImage : public TileCreatorSource
{
public:
- TileCreatorSourceImage( const QString &sourcePath )
+ explicit TileCreatorSourceImage( const QString &sourcePath )
: m_sourceImage( QImage( sourcePath ) ),
m_cachedRowNum( -1 )
{
diff --git a/src/lib/marble/TourWidget.cpp b/src/lib/marble/TourWidget.cpp
index a5929c8..91801dd 100644
--- a/src/lib/marble/TourWidget.cpp
+++ b/src/lib/marble/TourWidget.cpp
@@ -70,7 +70,7 @@ class TourWidgetPrivate
{
public:
- TourWidgetPrivate( TourWidget *parent );
+ explicit TourWidgetPrivate( TourWidget *parent );
GeoDataFeature *getPlaylistFeature() const;
void updateRootIndex();
diff --git a/src/lib/marble/declarative/DeclarativeDataPlugin.cpp b/src/lib/marble/declarative/DeclarativeDataPlugin.cpp
index b8fdc0f..707ca03 100644
--- a/src/lib/marble/declarative/DeclarativeDataPlugin.cpp
+++ b/src/lib/marble/declarative/DeclarativeDataPlugin.cpp
@@ -45,7 +45,7 @@ public:
static int m_global_counter;
int m_counter;
- DeclarativeDataPluginPrivate( DeclarativeDataPlugin* q );
+ explicit DeclarativeDataPluginPrivate( DeclarativeDataPlugin* q );
static void parseChunk( DeclarativeDataPluginItem * item, GeoDataCoordinates &coordinates, const QString &key, const QVariant &value );
diff --git a/src/lib/marble/declarative/MarbleQuickItem.cpp b/src/lib/marble/declarative/MarbleQuickItem.cpp
index 46d912c..be1918b 100644
--- a/src/lib/marble/declarative/MarbleQuickItem.cpp
+++ b/src/lib/marble/declarative/MarbleQuickItem.cpp
@@ -134,7 +134,7 @@ namespace Marble
class MarbleQuickItemPrivate
{
public:
- MarbleQuickItemPrivate(MarbleQuickItem *marble) :
+ explicit MarbleQuickItemPrivate(MarbleQuickItem *marble) :
m_marble(marble),
m_model(),
m_map(&m_model),
diff --git a/src/lib/marble/declarative/MarbleQuickItem.h b/src/lib/marble/declarative/MarbleQuickItem.h
index fd272fe..807e1ef 100644
--- a/src/lib/marble/declarative/MarbleQuickItem.h
+++ b/src/lib/marble/declarative/MarbleQuickItem.h
@@ -59,7 +59,7 @@ namespace Marble
Q_PROPERTY(bool inertialGlobeRotation READ inertialGlobeRotation WRITE setInertialGlobeRotation NOTIFY inertialGlobeRotationChanged)
public:
- MarbleQuickItem(QQuickItem *parent = 0);
+ explicit MarbleQuickItem(QQuickItem *parent = 0);
enum Projection{
Spherical = Marble::Spherical,
diff --git a/src/lib/marble/declarative/Routing.cpp b/src/lib/marble/declarative/Routing.cpp
index 994c27e..38475ca 100644
--- a/src/lib/marble/declarative/Routing.cpp
+++ b/src/lib/marble/declarative/Routing.cpp
@@ -33,7 +33,7 @@ namespace Marble {
class RoutingPrivate
{
public:
- RoutingPrivate(QObject * parent = nullptr);
+ explicit RoutingPrivate(QObject * parent = nullptr);
MarbleMap* m_marbleMap;
QMap<QString, Marble::RoutingProfile> m_profiles;
diff --git a/src/lib/marble/declarative/SearchBackend.h b/src/lib/marble/declarative/SearchBackend.h
index 88a3718..9949edf 100644
--- a/src/lib/marble/declarative/SearchBackend.h
+++ b/src/lib/marble/declarative/SearchBackend.h
@@ -32,7 +32,7 @@ class SearchBackend : public QObject
Q_PROPERTY(Placemark* selectedPlacemark READ selectedPlacemark NOTIFY selectedPlacemarkChanged)
public:
- SearchBackend(QObject *parent = 0);
+ explicit SearchBackend(QObject *parent = 0);
Q_INVOKABLE void search(const QString &place);
Q_INVOKABLE void setCompletionPrefix(const QString &prefix);
QObject *marbleQuickItem();
diff --git a/src/lib/marble/geodata/data/GeoDataFeature.h b/src/lib/marble/geodata/data/GeoDataFeature.h
index 0ed1fce..06d1e1a 100644
--- a/src/lib/marble/geodata/data/GeoDataFeature.h
+++ b/src/lib/marble/geodata/data/GeoDataFeature.h
@@ -634,7 +634,7 @@ class GEODATA_EXPORT GeoDataFeature : public GeoDataObject
protected:
// the d-pointer needs to be protected to be accessible from derived classes
GeoDataFeaturePrivate* d;
- GeoDataFeature( GeoDataFeaturePrivate* priv );
+ explicit GeoDataFeature( GeoDataFeaturePrivate* priv );
bool equals( const GeoDataFeature &other ) const;
using GeoDataObject::equals;
diff --git a/src/lib/marble/geodata/data/GeoDataLineString.h b/src/lib/marble/geodata/data/GeoDataLineString.h
index cb22392..b8ed3aa 100644
--- a/src/lib/marble/geodata/data/GeoDataLineString.h
+++ b/src/lib/marble/geodata/data/GeoDataLineString.h
@@ -374,7 +374,7 @@ class GEODATA_EXPORT GeoDataLineString : public GeoDataGeometry
virtual void unpack( QDataStream& stream );
protected:
- GeoDataLineString(GeoDataLineStringPrivate* priv);
+ explicit GeoDataLineString(GeoDataLineStringPrivate* priv);
private:
GeoDataLineStringPrivate *p();
diff --git a/src/lib/marble/geodata/data/GeoDataSchema.h b/src/lib/marble/geodata/data/GeoDataSchema.h
index 19fb38b..c17dcee 100644
--- a/src/lib/marble/geodata/data/GeoDataSchema.h
+++ b/src/lib/marble/geodata/data/GeoDataSchema.h
@@ -31,7 +31,7 @@ class GEODATA_EXPORT GeoDataSchema : public GeoDataObject
{
public:
GeoDataSchema();
- GeoDataSchema( const QHash<QString, GeoDataSimpleField>& simpleFields );
+ explicit GeoDataSchema( const QHash<QString, GeoDataSimpleField>& simpleFields );
GeoDataSchema( const GeoDataSchema& other );
GeoDataSchema& operator=( const GeoDataSchema& other );
bool operator==( const GeoDataSchema& other ) const;
diff --git a/src/lib/marble/layers/GeometryLayer.cpp b/src/lib/marble/layers/GeometryLayer.cpp
index c7acdea..d742a8a 100644
--- a/src/lib/marble/layers/GeometryLayer.cpp
+++ b/src/lib/marble/layers/GeometryLayer.cpp
@@ -58,7 +58,7 @@ class GeometryLayerPrivate
public:
typedef QList<GeoDataPlacemark const *> OsmQueue;
- GeometryLayerPrivate( const QAbstractItemModel *model );
+ explicit GeometryLayerPrivate( const QAbstractItemModel *model );
void createGraphicsItems( const GeoDataObject *object );
void createGraphicsItemFromGeometry( const GeoDataGeometry *object, const GeoDataPlacemark *placemark, bool avoidOsmDuplicates );
diff --git a/src/lib/marble/projections/AbstractProjection.h b/src/lib/marble/projections/AbstractProjection.h
index 719e9f8..dd962a6 100644
--- a/src/lib/marble/projections/AbstractProjection.h
+++ b/src/lib/marble/projections/AbstractProjection.h
@@ -216,7 +216,7 @@ class MARBLE_EXPORT AbstractProjection
protected:
const QScopedPointer<AbstractProjectionPrivate> d_ptr;
- AbstractProjection( AbstractProjectionPrivate* dd );
+ explicit AbstractProjection( AbstractProjectionPrivate* dd );
private:
Q_DECLARE_PRIVATE(AbstractProjection)
diff --git a/src/lib/marble/projections/AzimuthalEquidistantProjection.h b/src/lib/marble/projections/AzimuthalEquidistantProjection.h
index 128e759..34ae01b 100644
--- a/src/lib/marble/projections/AzimuthalEquidistantProjection.h
+++ b/src/lib/marble/projections/AzimuthalEquidistantProjection.h
@@ -92,7 +92,7 @@ class AzimuthalEquidistantProjection : public AzimuthalProjection
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const;
protected:
- AzimuthalEquidistantProjection(AzimuthalEquidistantProjectionPrivate *dd );
+ explicit AzimuthalEquidistantProjection(AzimuthalEquidistantProjectionPrivate *dd );
private:
Q_DECLARE_PRIVATE(AzimuthalEquidistantProjection)
diff --git a/src/lib/marble/projections/AzimuthalProjection.h b/src/lib/marble/projections/AzimuthalProjection.h
index b5d1c8a..852ef53 100644
--- a/src/lib/marble/projections/AzimuthalProjection.h
+++ b/src/lib/marble/projections/AzimuthalProjection.h
@@ -65,7 +65,7 @@ class AzimuthalProjection : public AbstractProjection
const ViewportParams *viewport ) const;
protected:
- AzimuthalProjection( AzimuthalProjectionPrivate* dd );
+ explicit AzimuthalProjection( AzimuthalProjectionPrivate* dd );
private:
Q_DECLARE_PRIVATE( AzimuthalProjection )
diff --git a/src/lib/marble/projections/CylindricalProjection.h b/src/lib/marble/projections/CylindricalProjection.h
index 0247b20..2ba1b6a 100644
--- a/src/lib/marble/projections/CylindricalProjection.h
+++ b/src/lib/marble/projections/CylindricalProjection.h
@@ -55,7 +55,7 @@ class CylindricalProjection : public AbstractProjection
virtual QPainterPath mapShape( const ViewportParams *viewport ) const;
protected:
- CylindricalProjection( CylindricalProjectionPrivate* dd );
+ explicit CylindricalProjection( CylindricalProjectionPrivate* dd );
private:
Q_DECLARE_PRIVATE( CylindricalProjection )
diff --git a/src/lib/marble/projections/GnomonicProjection.h b/src/lib/marble/projections/GnomonicProjection.h
index c823320..6fdf33a 100644
--- a/src/lib/marble/projections/GnomonicProjection.h
+++ b/src/lib/marble/projections/GnomonicProjection.h
@@ -91,7 +91,7 @@ class GnomonicProjection : public AzimuthalProjection
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const;
protected:
- GnomonicProjection(GnomonicProjectionPrivate *dd );
+ explicit GnomonicProjection(GnomonicProjectionPrivate *dd );
private:
Q_DECLARE_PRIVATE(GnomonicProjection)
diff --git a/src/lib/marble/projections/LambertAzimuthalProjection.h b/src/lib/marble/projections/LambertAzimuthalProjection.h
index fa60248..abe5542 100644
--- a/src/lib/marble/projections/LambertAzimuthalProjection.h
+++ b/src/lib/marble/projections/LambertAzimuthalProjection.h
@@ -91,7 +91,7 @@ class LambertAzimuthalProjection : public AzimuthalProjection
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const;
protected:
- LambertAzimuthalProjection(LambertAzimuthalProjectionPrivate *dd );
+ explicit LambertAzimuthalProjection(LambertAzimuthalProjectionPrivate *dd );
private:
Q_DECLARE_PRIVATE(LambertAzimuthalProjection)
diff --git a/src/lib/marble/projections/SphericalProjection.h b/src/lib/marble/projections/SphericalProjection.h
index be2bdc2..8eaaa17 100644
--- a/src/lib/marble/projections/SphericalProjection.h
+++ b/src/lib/marble/projections/SphericalProjection.h
@@ -98,7 +98,7 @@ class SphericalProjection : public AzimuthalProjection
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const;
protected:
- SphericalProjection(SphericalProjectionPrivate *dd );
+ explicit SphericalProjection(SphericalProjectionPrivate *dd );
private:
Q_DECLARE_PRIVATE(SphericalProjection)
diff --git a/src/lib/marble/projections/StereographicProjection.h b/src/lib/marble/projections/StereographicProjection.h
index 8af5f34..f2bff5a 100644
--- a/src/lib/marble/projections/StereographicProjection.h
+++ b/src/lib/marble/projections/StereographicProjection.h
@@ -91,7 +91,7 @@ class StereographicProjection : public AzimuthalProjection
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const;
protected:
- StereographicProjection(StereographicProjectionPrivate *dd );
+ explicit StereographicProjection(StereographicProjectionPrivate *dd );
private:
Q_DECLARE_PRIVATE(StereographicProjection)
diff --git a/src/lib/marble/projections/VerticalPerspectiveProjection.h b/src/lib/marble/projections/VerticalPerspectiveProjection.h
index 023b748..463db74 100644
--- a/src/lib/marble/projections/VerticalPerspectiveProjection.h
+++ b/src/lib/marble/projections/VerticalPerspectiveProjection.h
@@ -91,7 +91,7 @@ class VerticalPerspectiveProjection : public AzimuthalProjection
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const;
protected:
- VerticalPerspectiveProjection(VerticalPerspectiveProjectionPrivate *dd );
+ explicit VerticalPerspectiveProjection(VerticalPerspectiveProjectionPrivate *dd );
private:
Q_DECLARE_PRIVATE(VerticalPerspectiveProjection)
diff --git a/src/lib/marble/routing/RoutingInputWidget.cpp b/src/lib/marble/routing/RoutingInputWidget.cpp
index 00aa0e7..4eda612 100644
--- a/src/lib/marble/routing/RoutingInputWidget.cpp
+++ b/src/lib/marble/routing/RoutingInputWidget.cpp
@@ -54,7 +54,7 @@ namespace Marble
class RoutingInputLineEdit : public MarbleLineEdit
{
public:
- RoutingInputLineEdit( QWidget *parent = 0 );
+ explicit RoutingInputLineEdit( QWidget *parent = 0 );
protected:
virtual void keyPressEvent(QKeyEvent *);
diff --git a/src/lib/marble/routing/RoutingModel.cpp b/src/lib/marble/routing/RoutingModel.cpp
index a33f635..9c48db6 100644
--- a/src/lib/marble/routing/RoutingModel.cpp
+++ b/src/lib/marble/routing/RoutingModel.cpp
@@ -33,7 +33,7 @@ public:
OffRoute
};
- RoutingModelPrivate( RouteRequest* request );
+ explicit RoutingModelPrivate( RouteRequest* request );
MarbleModel *m_marbleModel;
Route m_route;
diff --git a/src/lib/marble/routing/SpeakersModel.cpp b/src/lib/marble/routing/SpeakersModel.cpp
index f676768..7a58c95 100644
--- a/src/lib/marble/routing/SpeakersModel.cpp
+++ b/src/lib/marble/routing/SpeakersModel.cpp
@@ -37,7 +37,7 @@ public:
NewstuffModel m_newstuffModel;
- SpeakersModelPrivate( SpeakersModel* parent );
+ explicit SpeakersModelPrivate( SpeakersModel* parent );
void fillModel();
diff --git a/src/lib/marble/routing/VoiceNavigationModel.cpp b/src/lib/marble/routing/VoiceNavigationModel.cpp
index 9b5661e..1fa86fe 100644
--- a/src/lib/marble/routing/VoiceNavigationModel.cpp
+++ b/src/lib/marble/routing/VoiceNavigationModel.cpp
@@ -43,7 +43,7 @@ public:
bool m_deviated;
- VoiceNavigationModelPrivate( VoiceNavigationModel* parent );
+ explicit VoiceNavigationModelPrivate( VoiceNavigationModel* parent );
void reset();