From 9c27ef4d920ac6b05cd052cf48fa1d0b85b194b9 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 24 Oct 2013 18:04:08 +0200 Subject: try to add some const-correctness (bzr r12719) --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/document.cpp') diff --git a/src/document.cpp b/src/document.cpp index e1df38da1..3433e42ec 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -559,7 +559,7 @@ SPDocument *SPDocument::doUnref() } /// guaranteed not to return nullptr -Inkscape::Util::Unit const* SPDocument::getDefaultUnit() +Inkscape::Util::Unit const* SPDocument::getDefaultUnit() const { SPNamedView const* nv = sp_document_namedview(this, NULL); return nv ? nv->getDefaultUnit() : unit_table.getUnit("pt"); -- cgit v1.2.3