File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -74,16 +74,6 @@ QgsUniqueValueRenderer::~QgsUniqueValueRenderer()
74
74
}
75
75
}
76
76
77
- const QList<QgsSymbol*> QgsUniqueValueRenderer::symbols () const
78
- {
79
- QList <QgsSymbol*> symbollist;
80
- for ( QMap<QString, QgsSymbol*>::const_iterator it = mSymbols .begin (); it != mSymbols .end (); ++it )
81
- {
82
- symbollist.append ( it.value () );
83
- }
84
- return symbollist;
85
- }
86
-
87
77
void QgsUniqueValueRenderer::insertValue ( QString name, QgsSymbol* symbol )
88
78
{
89
79
mSymbols .insert ( name, symbol );
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class CORE_EXPORT QgsUniqueValueRenderer: public QgsRenderer
62
62
/* *Returns the index of the classification field*/
63
63
int classificationField () const ;
64
64
/* *Return symbology items*/
65
- const QList<QgsSymbol*> symbols () const ;
65
+ const QList<QgsSymbol*> symbols () const { return mSymbols . values (); }
66
66
QgsRenderer* clone () const ;
67
67
protected:
68
68
/* *Field index used for classification*/
You can’t perform that action at this time.
0 commit comments