diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 08:40:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 08:59:59 +0000 |
commit | 3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (patch) | |
tree | 6e7f5d288cf65935b3ed1f0b88200d32d2f016f0 /embeddedobj/source/msole/olecomponent.cxx | |
parent | 2e528df76b168a221c6d251d9b076bce5ba051a3 (diff) |
UNO: no need to use OUString constructor when calling createInstance
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526
Reviewed-on: https://gerrit.libreoffice.org/19682
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'embeddedobj/source/msole/olecomponent.cxx')
-rw-r--r-- | embeddedobj/source/msole/olecomponent.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index cfe9c450fb65..b7f016824dd3 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -1396,8 +1396,7 @@ void OleComponent::OnViewChange_Impl( sal_uInt32 dwAspect ) if ( xLockObject.is() ) { uno::Reference < awt::XRequestCallback > xRequestCallback( - m_xFactory->createInstance( - OUString("com.sun.star.awt.AsyncCallback")), + m_xFactory->createInstance("com.sun.star.awt.AsyncCallback"), uno::UNO_QUERY ); xRequestCallback->addCallback( new MainThreadNotificationRequest( xLockObject, OLECOMP_ONVIEWCHANGE, dwAspect ), uno::Any() ); } @@ -1417,8 +1416,7 @@ void OleComponent::OnClose_Impl() if ( xLockObject.is() ) { uno::Reference < awt::XRequestCallback > xRequestCallback( - m_xFactory->createInstance( - OUString("com.sun.star.awt.AsyncCallback")), + m_xFactory->createInstance("com.sun.star.awt.AsyncCallback"), uno::UNO_QUERY ); xRequestCallback->addCallback( new MainThreadNotificationRequest( xLockObject, OLECOMP_ONCLOSE ), uno::Any() ); } |