From: pjrm Date: Thu, 17 May 2007 13:20:13 +0000 (+0000) Subject: CodingStyle: Use static for file-local function as per wiki CodingStyle document... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6f562718ad702d7185081e93e325474a2146a05;p=inkscape.git CodingStyle: Use static for file-local function as per wiki CodingStyle document. (I didn't notice the anonymous namespace wrapping.) --- 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) {