summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 6252dcd1e839..c1fdc10ee72c 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -142,7 +142,7 @@ void SmDocShell::LoadSymbols()
const OUString SmDocShell::GetComment() const
{
uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
- const_cast<SmDocShell*>(this)->GetModel(), uno::UNO_QUERY_THROW);
+ GetModel(), uno::UNO_QUERY_THROW);
uno::Reference<document::XDocumentProperties> xDocProps(
xDPS->getDocumentProperties());
return xDocProps->getDescription();