From 7bb4fefff999b9d05dd92c57dac74257f8beb8c7 Mon Sep 17 00:00:00 2001 From: joncruz Date: Sat, 6 Dec 2008 08:57:32 +0000 Subject: [PATCH] Warning cleanup. --- src/widgets/desktop-widget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index 1fdf1fceb..c80c1b4e7 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -137,11 +137,11 @@ public: private: static void hook(EgeColorProfTracker *tracker, gint a, gint b, CMSPrefWatcher *watcher); - + class DisplayProfileWatcher : public Inkscape::Preferences::Observer { public: DisplayProfileWatcher(CMSPrefWatcher &pw) : Observer("/options/displayprofile"), _pw(pw) {} - virtual void notify(Inkscape::Preferences::Entry const &val) { + virtual void notify(Inkscape::Preferences::Entry const &/*val*/) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); _pw._setCmsSensitive(!prefs->getString("/options/displayprofile/uri").empty()); _pw._refreshAll(); @@ -149,9 +149,9 @@ private: private: CMSPrefWatcher &_pw; }; - + DisplayProfileWatcher _dpw; - + class SoftProofWatcher : public Inkscape::Preferences::Observer { public: SoftProofWatcher(CMSPrefWatcher &pw) : Observer("/options/softproof"), _pw(pw) {} @@ -161,15 +161,15 @@ private: private: CMSPrefWatcher &_pw; }; - + SoftProofWatcher _spw; - + void _refreshAll(); void _setCmsSensitive(bool value); std::list _widget_list; EgeColorProfTracker *_tracker; - + friend class DisplayProfileWatcher; friend class SoftproofWatcher; }; @@ -289,7 +289,7 @@ sp_desktop_widget_init (SPDesktopWidget *dtw) GtkWidget *hbox; GtkWidget *eventbox; GtkStyle *style; - + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); new (&dtw->modified_connection) sigc::connection(); -- 2.30.2