X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdocument-undo.cpp;h=7556d2e8fed7df52a16ad5c00f551d8a006b62af;hb=84e5676034b77e63dbc43746cec0a8b48fd06f7c;hp=ce5564ffbcd7b741ca9cc1a92b8d004079104961;hpb=6040e72ba09263e21092924070f2ce7859a5b485;p=inkscape.git diff --git a/src/document-undo.cpp b/src/document-undo.cpp index ce5564ffb..7556d2e8f 100644 --- a/src/document-undo.cpp +++ b/src/document-undo.cpp @@ -124,10 +124,10 @@ sp_document_done (SPDocument *doc, const unsigned int event_type, Glib::ustring } void -sp_document_reset_key (Inkscape::Application *inkscape, SPDesktop *desktop, GtkObject *base) +sp_document_reset_key (Inkscape::Application */*inkscape*/, SPDesktop */*desktop*/, GtkObject *base) { - SPDocument *doc = (SPDocument *) base; - doc->actionkey = NULL; + SPDocument *doc = (SPDocument *) base; + doc->actionkey = NULL; } namespace { @@ -146,7 +146,7 @@ public: CommitEvent(SPDocument *doc, const gchar *key, const unsigned int type) : InteractionEvent(share_static_string("commit")) { - _addProperty(share_static_string("timestamp"), timestamp()); + _addProperty(share_static_string("timestamp"), timestamp()); gchar *serial = g_strdup_printf("%lu", doc->serial()); _addProperty(share_static_string("document"), serial); g_free(serial); @@ -226,9 +226,7 @@ sp_document_cancel (SPDocument *doc) sp_repr_begin_transaction (doc->rdoc); } -namespace { - -void finish_incomplete_transaction(SPDocument &doc) { +static void finish_incomplete_transaction(SPDocument &doc) { SPDocumentPrivate &priv=*doc.priv; Inkscape::XML::Event *log=sp_repr_commit_undoable(doc.rdoc); if (log || priv.partial) { @@ -242,8 +240,6 @@ void finish_incomplete_transaction(SPDocument &doc) { } } -} - gboolean sp_document_undo (SPDocument *doc) {