summaryrefslogtreecommitdiff
path: root/src/core/dom
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dom')
-rw-r--r--src/core/dom/Managed.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/dom/Managed.hpp b/src/core/dom/Managed.hpp
index 4c8f951..aab18a5 100644
--- a/src/core/dom/Managed.hpp
+++ b/src/core/dom/Managed.hpp
@@ -372,11 +372,21 @@ public:
T *operator->() { return ptr; }
/**
+ * Provides access to the underlying managed object for immutable handles.
+ */
+ const T *operator->() const { return ptr; }
+
+ /**
* Provides access to the underlying managed object.
*/
T &operator*() { return *ptr; }
/**
+ * Provides access to the underlying managed object for immutable handles.
+ */
+ const T &operator*() const { return *ptr; }
+
+ /**
* Comparison operator between base Owned and base Owned.
*/
bool operator==(const Handle &h) const { return ptr == h.ptr; }
@@ -676,6 +686,7 @@ public:
*/
Managed *getOwner() const { return owner; }
};
+
}
}