summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2007-05-17 13:20:13 +0000
committerpjrm <pjrm@users.sourceforge.net>2007-05-17 13:20:13 +0000
commit29e071b47bb1b76b9b79e1829a389ce9d8357ca6 (patch)
treee3f69ad01173db0916b73f2a9b1fb0ec9c8404a5 /src/document-undo.cpp
parentdoc: document a minor bug (or unexpected behaviour). (diff)
downloadinkscape-29e071b47bb1b76b9b79e1829a389ce9d8357ca6.tar.gz
inkscape-29e071b47bb1b76b9b79e1829a389ce9d8357ca6.zip
CodingStyle: Use static for file-local function as per wiki CodingStyle document. (I didn't notice the anonymous namespace wrapping.)
(bzr r3021)
Diffstat (limited to 'src/document-undo.cpp')
-rw-r--r--src/document-undo.cpp6
1 files changed, 1 insertions, 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)
{