summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2013-09-03 22:42:38 +0200
committerMurray Cumming <murrayc@murrayc.com>2013-09-03 22:42:38 +0200
commit5d4342dd14bb7ca79b63c1341fdfa420164b35e4 (patch)
treeb7412c5f11e0731d0d2b8ad0a3b1f40709c6f389
parentdb1668a39d9646882d5aa6b7386a3b7ea70f99af (diff)
downloadglibmm-5d4342dd14bb7ca79b63c1341fdfa420164b35e4.tar.gz
Fix the build
-rw-r--r--glib/glibmm/objectbase.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/glib/glibmm/objectbase.cc b/glib/glibmm/objectbase.cc
index 047f1925..e1fab4a6 100644
--- a/glib/glibmm/objectbase.cc
+++ b/glib/glibmm/objectbase.cc
@@ -1,7 +1,4 @@
-// -*- c++ -*-
-/* $Id$ */
-
-/* Copyright 2002 The gtkmm Development Team
+/* Copyright 2002-2013 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -264,7 +261,7 @@ void ObjectBase::set_property_value(const Glib::ustring& property_name, const Gl
if(cvalue && G_VALUE_HOLDS(cvalue, G_TYPE_STRING))
{
const gchar* str = g_value_get_string (cvalue);
- if(str && (strcmp(str, "") == 0))
+ if(g_strcmp0(str, "") == 0)
{
//Pass NULL to the C API instead of "":
g_object_set(gobj(), property_name.c_str(), (void*)0, (void*)0);