summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/inkscape-preferences.cpp
diff options
context:
space:
mode:
authorTobias Ellinghaus <me@houz.org>2017-07-05 10:10:59 +0000
committerTobias Ellinghaus <me@houz.org>2017-07-05 10:10:59 +0000
commit60d9032701e657344bafda8895bf073e28bab5ae (patch)
tree407634848d3ef9e472530fc96df159e77a2ef49b /src/ui/dialog/inkscape-preferences.cpp
parentClean up color-profile and use io/resource for dir scanning (diff)
downloadinkscape-60d9032701e657344bafda8895bf073e28bab5ae.tar.gz
inkscape-60d9032701e657344bafda8895bf073e28bab5ae.zip
Clean up color profiles code
This is a late 2nd part for 86a74b4a93ab62c8ef7819dc549fe7b3ace24916 and gets rid of the non-descriptive std::pair<ustring, bool>
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 1ad44941f..d946bac82 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -986,9 +986,8 @@ void InkscapePreferences::initPageIO()
_page_cms.add_group_header( _("Display adjustment"));
Glib::ustring tmpStr;
- std::vector<std::pair<Glib::ustring, bool> > sources = ColorProfile::getBaseProfileDirs();
- for ( std::vector<std::pair<Glib::ustring, bool> >::const_iterator it = sources.begin(); it != sources.end(); ++it ) {
- gchar* part = g_strdup_printf( "\n%s", it->first.c_str() );
+ for (auto &profile: ColorProfile::getBaseProfileDirs()) {
+ gchar* part = g_strdup_printf( "\n%s", profile.filename.c_str() );
tmpStr += part;
g_free(part);
}