[Marble-commits] KDE/kdeedu/marble/src/lib/graphicsview
Jens-Michael Hoffmann
jensmh at gmx.de
Fri Jul 31 17:21:51 CEST 2009
SVN commit 1005228 by jmhoffmann:
Declare constructors which accept only one argument explicit.
M +1 -1 FrameGraphicsItem.h
M +1 -1 GeoGraphicsItem.h
M +1 -1 GeoGraphicsItem_p.h
M +1 -1 LabelGraphicsItem.h
M +2 -2 MarbleGraphicsItem.h
M +2 -2 MarbleGraphicsItem_p.h
M +2 -2 ScreenGraphicsItem.h
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/FrameGraphicsItem.h #1005227:1005228
@@ -23,7 +23,7 @@
class MARBLE_EXPORT FrameGraphicsItem : public ScreenGraphicsItem
{
public:
- FrameGraphicsItem( MarbleGraphicsItem *parent = 0 );
+ explicit FrameGraphicsItem( MarbleGraphicsItem *parent = 0 );
FrameGraphicsItem( const QPointF& position, const QSizeF& size,
MarbleGraphicsItem *parent = 0 );
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/GeoGraphicsItem.h #1005227:1005228
@@ -37,7 +37,7 @@
{
public:
GeoGraphicsItem();
- GeoGraphicsItem( GeoGraphicsItemPrivate *d_ptr );
+ explicit GeoGraphicsItem( GeoGraphicsItemPrivate *d_ptr );
virtual ~GeoGraphicsItem();
enum GeoGraphicsItemFlag {
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/GeoGraphicsItem_p.h #1005227:1005228
@@ -19,7 +19,7 @@
class GeoGraphicsItemPrivate : public MarbleGraphicsItemPrivate
{
public:
- GeoGraphicsItemPrivate( GeoGraphicsItem *parent )
+ explicit GeoGraphicsItemPrivate( GeoGraphicsItem *parent )
: MarbleGraphicsItemPrivate( parent ),
m_positions()
{
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/LabelGraphicsItem.h #1005227:1005228
@@ -28,7 +28,7 @@
class MARBLE_EXPORT LabelGraphicsItem : public FrameGraphicsItem
{
public:
- LabelGraphicsItem( MarbleGraphicsItem *parent = 0 );
+ explicit LabelGraphicsItem( MarbleGraphicsItem *parent = 0 );
void setText( const QString& text );
void clear();
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/MarbleGraphicsItem.h #1005227:1005228
@@ -44,8 +44,8 @@
DeviceCoordinateCache
};
- MarbleGraphicsItem( MarbleGraphicsItem *parent = 0 );
- MarbleGraphicsItem( MarbleGraphicsItemPrivate *d_ptr );
+ explicit MarbleGraphicsItem( MarbleGraphicsItem *parent = 0 );
+ explicit MarbleGraphicsItem( MarbleGraphicsItemPrivate *d_ptr );
virtual ~MarbleGraphicsItem();
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/MarbleGraphicsItem_p.h #1005227:1005228
@@ -28,8 +28,8 @@
class MarbleGraphicsItemPrivate
{
public:
- MarbleGraphicsItemPrivate( MarbleGraphicsItem *marbleGraphicsItem,
- MarbleGraphicsItem *parent = 0 )
+ explicit MarbleGraphicsItemPrivate( MarbleGraphicsItem *marbleGraphicsItem,
+ MarbleGraphicsItem *parent = 0 )
: m_removeCachedPixmap( false ),
m_cacheMode( MarbleGraphicsItem::NoCache ),
m_visibility( true ),
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/ScreenGraphicsItem.h #1005227:1005228
@@ -38,10 +38,10 @@
};
Q_DECLARE_FLAGS(GraphicsItemFlags, GraphicsItemFlag)
- ScreenGraphicsItem( MarbleGraphicsItem *parent = 0 );
+ explicit ScreenGraphicsItem( MarbleGraphicsItem *parent = 0 );
ScreenGraphicsItem( const QPointF& position, const QSizeF& size,
MarbleGraphicsItem *parent = 0 );
- ScreenGraphicsItem( ScreenGraphicsItemPrivate *d_ptr );
+ explicit ScreenGraphicsItem( ScreenGraphicsItemPrivate *d_ptr );
ScreenGraphicsItem( const QPointF& position, const QSizeF& size,
ScreenGraphicsItemPrivate *d_ptr );
More information about the Marble-commits
mailing list