X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fjabber_whiteboard%2Fsession-manager.cpp;h=b6d236be93210107680765b9fb1481f1d8a51a7b;hb=c1aeec745cff8de1ffc861137b49361b8fe11275;hp=a04ab05f00e39fa1f424141140e37e0e72260670;hpb=b45b3ca12c271745b18a142d10a6ac8efd9f79cc;p=inkscape.git diff --git a/src/jabber_whiteboard/session-manager.cpp b/src/jabber_whiteboard/session-manager.cpp index a04ab05f0..b6d236be9 100644 --- a/src/jabber_whiteboard/session-manager.cpp +++ b/src/jabber_whiteboard/session-manager.cpp @@ -95,7 +95,7 @@ void SessionManager::initialiseSession(Glib::ustring const& to, State::SessionType type) { - SPDocument* doc = makeInkboardDocument(g_quark_from_static_string("xml"), "svg:svg", type, to); + Document* doc = makeInkboardDocument(g_quark_from_static_string("xml"), "svg:svg", type, to); InkboardDocument* inkdoc = dynamic_cast< InkboardDocument* >(doc->rdoc); if(inkdoc == NULL) return; @@ -317,7 +317,7 @@ SessionManager::checkInvitationQueue() Dialog::DialogReply reply = static_cast< Dialog::DialogReply >(dialog.run()); - SPDocument* doc = makeInkboardDocument(g_quark_from_static_string("xml"), "svg:svg", State::WHITEBOARD_PEER, from); + Document* doc = makeInkboardDocument(g_quark_from_static_string("xml"), "svg:svg", State::WHITEBOARD_PEER, from); InkboardDocument* inkdoc = dynamic_cast< InkboardDocument* >(doc->rdoc); if(inkdoc == NULL) return true; @@ -350,10 +350,10 @@ SessionManager::checkInvitationQueue() //# HELPER FUNCTIONS //######################################################################### -SPDocument* +Document* makeInkboardDocument(int code, gchar const* rootname, State::SessionType type, Glib::ustring const& to) { - SPDocument* doc; + Document* doc; InkboardDocument* rdoc = new InkboardDocument(g_quark_from_static_string("xml"), type, to); rdoc->setAttribute("version", "1.0"); @@ -382,7 +382,7 @@ makeInkboardDocument(int code, gchar const* rootname, State::SessionType type, G // // \see sp_file_new SPDesktop* -makeInkboardDesktop(SPDocument* doc) +makeInkboardDesktop(Document* doc) { SPDesktop* dt;