summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbabookmarks.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbabookmarks.cxx')
-rw-r--r--sw/source/ui/vba/vbabookmarks.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbabookmarks.cxx b/sw/source/ui/vba/vbabookmarks.cxx
index 6755413796e4..de6cbfea2ef5 100644
--- a/sw/source/ui/vba/vbabookmarks.cxx
+++ b/sw/source/ui/vba/vbabookmarks.cxx
@@ -134,8 +134,7 @@ uno::Any
SwVbaBookmarks::createCollectionObject( const css::uno::Any& aSource )
{
uno::Reference< container::XNamed > xNamed( aSource, uno::UNO_QUERY_THROW );
- OUString aName = xNamed->getName();
- return uno::Any( uno::Reference< word::XBookmark > ( new SwVbaBookmark( getParent(), mxContext, mxModel, aName ) ) );
+ return uno::Any(uno::Reference<word::XBookmark>(new SwVbaBookmark(getParent(), mxContext, mxModel, xNamed->getName())));
}
void SwVbaBookmarks::removeBookmarkByName( const OUString& rName )