From a60754ea93593d22f558ed3f24529054feffd76d Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 19 Mar 2022 15:35:58 +0100 Subject: [PATCH] App/Gui: make operator-> operator of WeakPtrT constant --- src/App/DocumentObserver.h | 4 ++-- src/Gui/DocumentObserver.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/DocumentObserver.h b/src/App/DocumentObserver.h index 514bdf8387..c1070d6894 100644 --- a/src/App/DocumentObserver.h +++ b/src/App/DocumentObserver.h @@ -377,9 +377,9 @@ public: } /*! * \brief operator -> - * \return pointer to the document + * \return pointer to the document object */ - T* operator->() { + T* operator->() const { return ptr.get(); } /*! diff --git a/src/Gui/DocumentObserver.h b/src/Gui/DocumentObserver.h index 4c550ac620..c923185cd3 100644 --- a/src/Gui/DocumentObserver.h +++ b/src/Gui/DocumentObserver.h @@ -255,9 +255,9 @@ public: } /*! * \brief operator -> - * \return pointer to the document + * \return pointer to the view provider */ - T* operator->() { + T* operator->() const { return ptr.get(); } /*!