Code

share_static -> share_static_string
[inkscape.git] / src / jabber_whiteboard / deserializer.cpp
index 8a6a464b4820350b72012c902fc45e8003b4684f..2df35e8abf2115a3eb127c9af449b445b4e9897d 100644 (file)
@@ -299,14 +299,14 @@ Deserializer::deserializeEventChgContent(Glib::ustring const& msg)
        if (MessageUtilities::findTag(buf, msg)) {
                oldval = Util::share_string(buf.data.c_str());
        } else {
-               oldval = Util::share_static("");
+               oldval = Util::share_static_string("");
        }
 
        buf.tag = MESSAGE_NEWVAL;
        if (MessageUtilities::findTag(buf, msg)) {
                newval = Util::share_string(buf.data.c_str());
        } else {
-               newval = Util::share_static("");
+               newval = Util::share_static_string("");
        }
 
        // 3.  Find the node identified by the ID.  If we cannot find it, return.
@@ -348,7 +348,7 @@ Deserializer::deserializeEventChgAttr(Glib::ustring const& msg)
        if (MessageUtilities::findTag(buf, msg)) {
                newval = Util::share_string(buf.data.c_str());
        } else {
-               newval = Util::share_static("");
+               newval = Util::share_static_string("");
        }
 
        // 3.  Extract optional attributes: old value.  If we do not find it in the message,
@@ -358,7 +358,7 @@ Deserializer::deserializeEventChgAttr(Glib::ustring const& msg)
        if (MessageUtilities::findTag(buf, msg)) {
                oldval = Util::share_string(buf.data.c_str());
        } else {
-               oldval = Util::share_static("");
+               oldval = Util::share_static_string("");
        }
 
        // 4.  Look up this node in the local node database and external tracker.
@@ -372,7 +372,7 @@ Deserializer::deserializeEventChgAttr(Glib::ustring const& msg)
        // 5.  If this node is in the actions queue and is marked as "new", we need to apply
        // _all_ received attributes to it _before_ adding it to the document tree.
        if (this->_newnodes.find(id) != this->_newnodes.end()) {
-               node->setAttribute(key.c_str(), newval.cString());      
+               node->setAttribute(key.c_str(), newval.pointer());      
        }
 
        // 6.  Deserialize the event.