diff options
Diffstat (limited to 'editeng/source/uno/unofield.cxx')
-rw-r--r-- | editeng/source/uno/unofield.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index 0264e52f0319..237b336b68a1 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -931,7 +931,7 @@ uno::Reference< uno::XInterface > SvxUnoTextCreateTextField( std::u16string_view } if (nId != text::textfield::Type::UNSPECIFIED) - xRet = static_cast<cppu::OWeakObject *>(new SvxUnoTextField( nId )); + xRet = getXWeak(new SvxUnoTextField( nId )); } return xRet; |