diff options
| author | Tobias Ellinghaus <me@houz.org> | 2017-07-05 10:10:59 +0000 |
|---|---|---|
| committer | Tobias Ellinghaus <me@houz.org> | 2017-07-05 10:10:59 +0000 |
| commit | 60d9032701e657344bafda8895bf073e28bab5ae (patch) | |
| tree | 407634848d3ef9e472530fc96df159e77a2ef49b /src/ui/dialog/inkscape-preferences.cpp | |
| parent | Clean up color-profile and use io/resource for dir scanning (diff) | |
| download | inkscape-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.cpp | 5 |
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); } |
