Skip to content

Commit cdf21b7

Browse files
committedNov 12, 2015
Return derived classes from clone() methods, avoids need to
dynamic_cast results
1 parent dfb1585 commit cdf21b7

File tree

141 files changed

+221
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+221
-221
lines changed
 

‎python/core/diagram/qgsdiagram.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class QgsDiagram
77
virtual ~QgsDiagram();
88
/** Returns an instance that is equivalent to this one
99
* @note added in 2.4 */
10-
virtual QgsDiagram* clone() const = 0;
10+
virtual QgsDiagram* clone() const = 0 /Factory/;
1111

1212
void clearCache();
1313
QgsExpression* getExpression( const QString& expression, const QgsFields* fields ) /Deprecated/;

‎python/core/diagram/qgshistogramdiagram.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class QgsHistogramDiagram: QgsDiagram
77
QgsHistogramDiagram();
88
~QgsHistogramDiagram();
99

10-
virtual QgsDiagram* clone() const;
10+
virtual QgsHistogramDiagram* clone() const /Factory/;
1111

1212
void renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiagramSettings& s, const QPointF& position );
1313

0 commit comments

Comments
 (0)
Please sign in to comment.