summaryrefslogtreecommitdiff
path: root/sfx2/source/view/viewfrm2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/view/viewfrm2.cxx')
-rw-r--r--sfx2/source/view/viewfrm2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm2.cxx b/sfx2/source/view/viewfrm2.cxx
index 81ada85c2420..27292d8cfbd6 100644
--- a/sfx2/source/view/viewfrm2.cxx
+++ b/sfx2/source/view/viewfrm2.cxx
@@ -321,8 +321,7 @@ void SfxViewFrame::GetState_Impl( SfxItemSet &rSet )
case SID_OBJECT:
if ( GetViewShell() && GetViewShell()->GetVerbs().getLength() && !GetObjectShell()->IsInPlaceActive() )
{
- uno::Any aAny;
- aAny <<= GetViewShell()->GetVerbs();
+ uno::Any aAny(GetViewShell()->GetVerbs());
rSet.Put( SfxUnoAnyItem( sal_uInt16( SID_OBJECT ), aAny ) );
}
else