summaryrefslogtreecommitdiff
path: root/basic/source/uno
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/uno')
-rw-r--r--basic/source/uno/dlgcont.cxx3
-rw-r--r--basic/source/uno/modsizeexceeded.cxx4
2 files changed, 3 insertions, 4 deletions
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx
index f458e65df0e3..2d4c1f6e532c 100644
--- a/basic/source/uno/dlgcont.cxx
+++ b/basic/source/uno/dlgcont.cxx
@@ -560,8 +560,7 @@ Reference< resource::XStringResourceResolver >
if( !m_xStringResourcePersistence.is() )
m_xStringResourcePersistence = m_pParent->implCreateStringResource( this );
- Reference< resource::XStringResourceResolver > xRet( m_xStringResourcePersistence, UNO_QUERY );
- return xRet;
+ return m_xStringResourcePersistence;
}
bool SfxDialogLibrary::containsValidDialog( const css::uno::Any& aElement )
diff --git a/basic/source/uno/modsizeexceeded.cxx b/basic/source/uno/modsizeexceeded.cxx
index a4a0ce78e536..a54b426c719e 100644
--- a/basic/source/uno/modsizeexceeded.cxx
+++ b/basic/source/uno/modsizeexceeded.cxx
@@ -34,8 +34,8 @@ ModuleSizeExceeded::ModuleSizeExceeded( const std::vector< OUString >& sModules
m_aRequest <<= aReq;
- m_xAbort.set( uno::Reference< task::XInteractionAbort >(new comphelper::OInteractionAbort), uno::UNO_QUERY );
- m_xApprove.set( uno::Reference< task::XInteractionApprove >(new comphelper::OInteractionApprove ), uno::UNO_QUERY );
+ m_xAbort = new comphelper::OInteractionAbort;
+ m_xApprove = new comphelper::OInteractionApprove;
m_lContinuations.realloc( 2 );
m_lContinuations[0] = m_xApprove;
m_lContinuations[1] = m_xAbort;