Fix a warning about returning a reference to a temporary by introducing a memory...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 27 Jan 2008 11:45:26 +0000 (11:45 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 27 Jan 2008 11:45:26 +0000 (11:45 +0000)
git-svn-id: http://svn.voria.com/code@1508 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp

index 98487b6..a7cebe0 100644 (file)
@@ -200,8 +200,11 @@ public:
        {
                if(valuewidget)
                        return valuewidget->get_value();
-               return synfig::ValueBase();
+
+               warning("%s:%d this code shouldn't be reached", __FILE__, __LINE__);
+               return *(new synfig::ValueBase());
        }
+
        const Glib::ustring &get_path()
        {
                return path;