Skip to content

Commit 9a54ef8

Browse files
author
mhugent
committed
Apply patch #1896 from gislab
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11512 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 96281e0 commit 9a54ef8

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/core/renderer/qgsuniquevaluerenderer.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@ QgsUniqueValueRenderer::~QgsUniqueValueRenderer()
7474
}
7575
}
7676

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-
8777
void QgsUniqueValueRenderer::insertValue( QString name, QgsSymbol* symbol )
8878
{
8979
mSymbols.insert( name, symbol );

src/core/renderer/qgsuniquevaluerenderer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class CORE_EXPORT QgsUniqueValueRenderer: public QgsRenderer
6262
/**Returns the index of the classification field*/
6363
int classificationField() const;
6464
/**Return symbology items*/
65-
const QList<QgsSymbol*> symbols() const;
65+
const QList<QgsSymbol*> symbols() const { return mSymbols.values(); }
6666
QgsRenderer* clone() const;
6767
protected:
6868
/**Field index used for classification*/

0 commit comments

Comments
 (0)