From d6f562718ad702d7185081e93e325474a2146a05 Mon Sep 17 00:00:00 2001 From: pjrm Date: Thu, 17 May 2007 13:20:13 +0000 Subject: [PATCH] CodingStyle: Use static for file-local function as per wiki CodingStyle document. (I didn't notice the anonymous namespace wrapping.) --- src/document-undo.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/document-undo.cpp b/src/document-undo.cpp index ce5564ffb..811258331 100644 --- a/src/document-undo.cpp +++ b/src/document-undo.cpp @@ -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) { -- 2.30.2