css::uno::Reference can automatically up-cast now

follow-up to 8568c7226c "tdf#66232: Cannot open
files by COM2"

Change-Id: I5a0858dd6f48136f9f07b0d04c5634a6173dd154
This commit is contained in:
Stephan Bergmann 2015-05-04 13:09:38 +02:00
parent ab30dbe705
commit fccf76ee8c

View file

@ -363,7 +363,7 @@ HRESULT DocumentHolder::InPlaceActivate(
LoadDocInFrame( sal_True );
uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create(comphelper::getComponentContext(m_xFactory));
xDesktop->getFrames()->append( uno::Reference<frame::XFrame>(m_xFrame, uno::UNO_QUERY) );
xDesktop->getFrames()->append(m_xFrame);
// determine the menuhandle to get menutitems.
if(m_xLayoutManager.is()) {