Fix a warning about returning a reference to a temporary by introducing a memory...
[synfig.git] / 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;