From 60d9032701e657344bafda8895bf073e28bab5ae Mon Sep 17 00:00:00 2001 From: Tobias Ellinghaus Date: Wed, 5 Jul 2017 12:10:59 +0200 Subject: Clean up color profiles code This is a late 2nd part for 86a74b4a93ab62c8ef7819dc549fe7b3ace24916 and gets rid of the non-descriptive std::pair --- src/ui/dialog/inkscape-preferences.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ui/dialog/inkscape-preferences.cpp') 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 > sources = ColorProfile::getBaseProfileDirs(); - for ( std::vector >::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); } -- cgit v1.2.3