diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-17 09:06:40 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-09-23 09:53:50 +0300 |
commit | e0dd5d238cbe59800502cf76981cff0cfdb59a4e (patch) | |
tree | 7263cb8ebb4a769e77a65aafd91355718d9b1a2e /sd | |
parent | 05ad5e2c0cc5b0181f869a4dc42ca280aab7131a (diff) |
css::uno::Reference::query does not have side effects
partial cherry-pick of c6eb208473109234886600ac299f0cc75ee94e9c "loplugin:staticcall"
Change-Id: Icb2ee78db94ba3a87a5c8ff35d72d191f01d4900
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/pptinanimations.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unosrch.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index be60d6502bae..813d04fdde18 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -597,7 +597,7 @@ void AnimationImporter::fixMainSequenceTiming( const ::com::sun::star::uno::Refe // with node xE2->nextElement() >>= xEA2; if( xEA2.is() ) - xE2.query( xEA2->createEnumeration() ); + xE2.set(xEA2->createEnumeration(), css::uno::UNO_QUERY); else xE2.clear(); diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index 65804c20701d..587a6003f251 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -498,7 +498,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( uno::Refere { uno::Reference< text::XTextContent > xParagraph( xParaEnum->nextElement(), uno::UNO_QUERY ); if( xParagraph.is() ) - xEnumAccess.query( xParagraph ); + xEnumAccess.set(xParagraph, css::uno::UNO_QUERY); else xEnumAccess.clear(); |