diff options
author | Murray Cumming <murrayc@murrayc.com> | 2010-07-22 22:17:27 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2010-07-22 22:17:27 +0200 |
commit | 1da3fe549cf604b5b07263965676c59f745ea38f (patch) | |
tree | 342c5b79c2aa27d67f83c8dbbb1ca2c242efcb7e /examples | |
parent | 05860f7e98cf4a7a7255c8a0b76a5e35269d45dc (diff) | |
download | glibmm-1da3fe549cf604b5b07263965676c59f745ea38f.tar.gz |
Settings example: Minor change.
* examples/settings/settings.cc: Remove the unnecessary use of
Glib::ustring::raw().
Diffstat (limited to 'examples')
-rw-r--r-- | examples/settings/settings.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/settings/settings.cc b/examples/settings/settings.cc index 7bda8e25..5f8cbfac 100644 --- a/examples/settings/settings.cc +++ b/examples/settings/settings.cc @@ -28,13 +28,13 @@ const char *const INT_KEY = "test-int"; static void on_key_changed(const Glib::ustring& key, const Glib::RefPtr<Gio::Settings>& settings) { std::cout << Glib::ustring::compose("'%1' changed\n", key); - if (key.raw() == STRING_KEY) + if (key == STRING_KEY) { Glib::ustring str = settings->get_string(key); std::cout << Glib::ustring::compose("New value of '%1': '%2'\n", key, str); } - else if (key.raw() == INT_KEY) + else if (key == INT_KEY) { std::cout << Glib::ustring::compose("New value of '%1': '%2'\n", key, settings->get_int(key)); |