summaryrefslogtreecommitdiffstats
path: root/src/widgets/desktop-widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
-rw-r--r--src/widgets/desktop-widget.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 8f7d56c76..aae34ed98 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -190,7 +190,7 @@ void PrefWatcher::notifyAttributeChanged( Node &node, GQuark name,
} else if (strcmp("displayprofile", id) == 0) {
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
Glib::ustring current = prefs->getString("options.displayprofile", "uri");
- bool enabled = current.length() > 0;
+ bool enabled = !current.empty();
for ( std::list<SPDesktopWidget*>::iterator it = dtws.begin(); it != dtws.end(); ++it ) {
SPDesktopWidget* dtw = *it;
@@ -208,12 +208,11 @@ void PrefWatcher::notifyAttributeChanged( Node &node, GQuark name,
(*it)->requestCanvasUpdate();
}
}
+ }
#else
- {
- (void)node;
- (void)name;
+ (void)node;
+ (void)name;
#endif // ENABLE_LCMS
- }
}
static PrefWatcher* watcher = 0;