X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fjabber_whiteboard%2Finkboard-node.cpp;h=e6eee7304eab1739c682fecbca4286912eb5ac7f;hb=144c1b594591ba3d62513b126ca87a5f242b2f2b;hp=343b6c4c1216815fcdcd61851e726584bcd1a994;hpb=34542c57b775e41cbd8f835850f818f72f8e7ebe;p=inkscape.git diff --git a/src/jabber_whiteboard/inkboard-node.cpp b/src/jabber_whiteboard/inkboard-node.cpp index 343b6c4c1..e6eee7304 100644 --- a/src/jabber_whiteboard/inkboard-node.cpp +++ b/src/jabber_whiteboard/inkboard-node.cpp @@ -60,11 +60,12 @@ InkboardDocument::composeNewMessage(Inkscape::XML::Node *node) } void -InkboardDocument::changeConfigureText(Glib::ustring target, unsigned int version, - Glib::ustring text) +InkboardDocument::changeConfigureText(Glib::ustring target, + unsigned int /*version*/, + Glib::ustring text) { XML::Node *node = this->tracker->get(target); - unsigned int elementVersion = this->tracker->getVersion(node); + //unsigned int elementVersion = this->tracker->getVersion(node); if(node)// && version == (elementVersion + 1)) { @@ -75,11 +76,13 @@ InkboardDocument::changeConfigureText(Glib::ustring target, unsigned int version } void -InkboardDocument::changeConfigure(Glib::ustring target, unsigned int version, - Glib::ustring attribute, Glib::ustring value) +InkboardDocument::changeConfigure(Glib::ustring target, + unsigned int /*version*/, + Glib::ustring attribute, + Glib::ustring value) { XML::Node *node = this->tracker->get(target); - unsigned int elementVersion = this->tracker->getVersion(node); + //unsigned int elementVersion = this->tracker->getVersion(node); if(node)// && version == (elementVersion + 1)) { @@ -93,7 +96,7 @@ InkboardDocument::changeConfigure(Glib::ustring target, unsigned int version, void InkboardDocument::changeNew(Glib::ustring parentid, Glib::ustring id, - signed int index, Pedro::Element* data) + signed int /*index*/, Pedro::Element* data) { Glib::ustring name(data->getName()); @@ -101,7 +104,7 @@ InkboardDocument::changeNew(Glib::ustring parentid, Glib::ustring id, if(name == "text") { XML::Node *parent = this->tracker->get(parentid); - XML::Node *node = new XML::TextNode(Util::share_string(data->getValue().c_str())); + XML::Node *node = new XML::TextNode(Util::share_string(data->getValue().c_str()), this); if(parent && node) { @@ -110,7 +113,7 @@ InkboardDocument::changeNew(Glib::ustring parentid, Glib::ustring id, } }else { - XML::Node *node = new XML::ElementNode(g_quark_from_string(name.c_str())); + XML::Node *node = new XML::ElementNode(g_quark_from_string(name.c_str()), this); this->tracker->put(id,node); XML::Node *parent = (parentid != "ROOT")