Code

CodingStyle: Use static for file-local function as per wiki CodingStyle document...
authorpjrm <pjrm@users.sourceforge.net>
Thu, 17 May 2007 13:20:13 +0000 (13:20 +0000)
committerpjrm <pjrm@users.sourceforge.net>
Thu, 17 May 2007 13:20:13 +0000 (13:20 +0000)
src/document-undo.cpp

index ce5564ffbcd7b741ca9cc1a92b8d004079104961..81125833110313c50b78793bbadecf8b6ee35dde 100644 (file)
@@ -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)
 {