[glibmm] Fix the build



commit 5d4342dd14bb7ca79b63c1341fdfa420164b35e4
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Sep 3 22:42:38 2013 +0200

    Fix the build

 glib/glibmm/objectbase.cc |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/glib/glibmm/objectbase.cc b/glib/glibmm/objectbase.cc
index 047f192..e1fab4a 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]