diff options
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxmenu.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index fbda6cd1e5ca..01a6895eefb4 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -528,9 +528,7 @@ void VCLXMenu::setPopupMenu( sal_Int16 nItemId, const ::com::sun::star::uno::Ref // if the popup men is not created by stardiv.Toolkit.VCLXPopupMenu if( !aRef.is() ) { - ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu > * pNewRef = new ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu > ; - *pNewRef = new VCLXPopupMenu( (PopupMenu*)pMenu ); - aRef = *pNewRef; + aRef = new VCLXPopupMenu( (PopupMenu*)pMenu ); } } return aRef; |