include/svtools/editbrowsebox.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit eca4b449dc9b5fe689e429ec449fefe8198fc2b3 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Thu Feb 6 17:54:11 2025 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri Feb 7 11:13:09 2025 +0100 browsebox: Drop unnecessary const_cast Change-Id: Iad7851be5b3f077128a8197626070a09b43c057c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181222 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index 1e8f10a36a6e..67e101fcf409 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -80,7 +80,7 @@ namespace svt CellController(ControlBase* pW); virtual ~CellController() override; - ControlBase& GetWindow() const { return *const_cast<CellController*>(this)->pWindow; } + ControlBase& GetWindow() const { return *pWindow; } virtual void SaveValue() = 0; virtual bool IsValueChangedFromSaved() const = 0;