summaryrefslogtreecommitdiffstats
path: root/src/document.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-10-24 16:04:08 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-10-24 16:04:08 +0000
commit9c27ef4d920ac6b05cd052cf48fa1d0b85b194b9 (patch)
tree58ca3614efed828528b725234c945cebeb2cbe81 /src/document.h
parentfix bad style (diff)
downloadinkscape-9c27ef4d920ac6b05cd052cf48fa1d0b85b194b9.tar.gz
inkscape-9c27ef4d920ac6b05cd052cf48fa1d0b85b194b9.zip
try to add some const-correctness
(bzr r12719)
Diffstat (limited to 'src/document.h')
-rw-r--r--src/document.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/document.h b/src/document.h
index 6982e4c4f..0977fc7a8 100644
--- a/src/document.h
+++ b/src/document.h
@@ -124,6 +124,7 @@ public:
/** Returns our SPRoot */
SPRoot *getRoot() { return root; }
+ SPRoot const *getRoot() const { return root; }
Inkscape::XML::Node *getReprRoot() { return rroot; }
@@ -228,7 +229,7 @@ public:
SPDocument *doRef();
SPDocument *doUnref();
- Inkscape::Util::Unit const* getDefaultUnit();
+ Inkscape::Util::Unit const* getDefaultUnit() const;
Inkscape::Util::Quantity getWidth() const;
Inkscape::Util::Quantity getHeight() const;
Geom::Point getDimensions() const;