@@ -35,35 +35,6 @@ QgsSingleSymbolRendererV2::QgsSingleSymbolRendererV2( QgsSymbolV2* symbol )
35
35
Q_ASSERT ( symbol );
36
36
}
37
37
38
- // we need to clone symbol
39
- QgsSingleSymbolRendererV2::QgsSingleSymbolRendererV2 ( const QgsSingleSymbolRendererV2 & src )
40
- : QgsFeatureRendererV2( " singleSymbol" )
41
- , mSymbol( src.mSymbol .data() ? src.mSymbol->clone() : NULL )
42
- , mRotation( src.mRotation .data() ? new QgsExpression( src.mRotation ->expression () ) : NULL )
43
- , mSizeScale( src.mSizeScale .data() ? new QgsExpression( src.mSizeScale ->expression () ) : NULL )
44
- , mScaleMethod( src.mScaleMethod )
45
- , mTempSymbol( src.mTempSymbol .data() ? src.mTempSymbol->clone() : NULL )
46
- {
47
- }
48
-
49
- // this is a copy + swap idiom implementation
50
- // the copy is done with the 'pass by value'
51
- QgsSingleSymbolRendererV2 & QgsSingleSymbolRendererV2::operator =( QgsSingleSymbolRendererV2 other )
52
- {
53
- swap ( other );
54
- return *this ;
55
- }
56
-
57
- void QgsSingleSymbolRendererV2::swap ( QgsSingleSymbolRendererV2 & other )
58
- {
59
- qSwap ( mSymbol , other.mSymbol );
60
- qSwap ( mRotation , other.mRotation );
61
- qSwap ( mSizeScale , other.mSizeScale );
62
- qSwap ( mScaleMethod , other.mScaleMethod );
63
- qSwap ( mTempSymbol , other.mTempSymbol );
64
- qSwap ( mOrigSize , other.mOrigSize );
65
- }
66
-
67
38
QgsSingleSymbolRendererV2::~QgsSingleSymbolRendererV2 ()
68
39
{
69
40
}
0 commit comments