mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
For loop
This commit is contained in:
parent
958a6ee90b
commit
bb181c828a
@ -1003,12 +1003,11 @@ QStringList QgsApplication::svgPaths()
|
||||
//local directories to search when looking for an SVG with a given basename
|
||||
//defined by user in options dialog
|
||||
QgsSettings settings;
|
||||
QStringList pathList = settings.value( QStringLiteral( "svg/searchPathsForSVG" ) ).toStringList();
|
||||
const QStringList pathList = settings.value( QStringLiteral( "svg/searchPathsForSVG" ) ).toStringList();
|
||||
|
||||
// maintain user set order while stripping duplicates
|
||||
QStringList paths;
|
||||
const auto constPathList = pathList;
|
||||
for ( const QString &path : constPathList )
|
||||
for ( const QString &path : pathList )
|
||||
{
|
||||
if ( !paths.contains( path ) )
|
||||
paths.append( path );
|
||||
|
Loading…
x
Reference in New Issue
Block a user