diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 16:52:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 20:56:26 +0000 |
commit | 924b2923b8b1515a4c37079e72a2a9cc6010a4f4 (patch) | |
tree | 111cf075f4085a9d1b4f1a69e7d5cbcaff57133c /embeddedobj | |
parent | b926671283837ccf4ee1b283ff4fb286e29cedfd (diff) |
V801: Decreased performance
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/commonembedding/persistence.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx index 9ac7dd2d2242..4f1addaf406a 100644 --- a/embeddedobj/source/commonembedding/persistence.cxx +++ b/embeddedobj/source/commonembedding/persistence.cxx @@ -217,20 +217,20 @@ static uno::Reference< util::XCloseable > CreateDocument( const uno::Reference< } -static void SetDocToEmbedded( const uno::Reference< frame::XModel > xDocument, const OUString& aModuleName ) +static void SetDocToEmbedded( const uno::Reference< frame::XModel >& rDocument, const OUString& aModuleName ) { - if ( xDocument.is() ) + if (rDocument.is()) { uno::Sequence< beans::PropertyValue > aSeq( 1 ); aSeq[0].Name = "SetEmbedded"; aSeq[0].Value <<= sal_True; - xDocument->attachResource( OUString(), aSeq ); + rDocument->attachResource( OUString(), aSeq ); if ( !aModuleName.isEmpty() ) { try { - uno::Reference< frame::XModule > xModule( xDocument, uno::UNO_QUERY_THROW ); + uno::Reference< frame::XModule > xModule( rDocument, uno::UNO_QUERY_THROW ); xModule->setIdentifier( aModuleName ); } catch( const uno::Exception& ) |