summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-16 10:22:31 +0200
committerTor Lillqvist <tml@collabora.com>2014-09-23 09:54:01 +0300
commit9688231e6be24de39750307bb779641057f7507a (patch)
tree106d5632718339b94eb9eb1c0102bddbbd32ed03 /svtools
parente0dd5d238cbe59800502cf76981cff0cfdb59a4e (diff)
SAL_WARN_UNUSED_RESULT for static Reference::query function
...which the recent loplugin:staticcall changes showed was occasionally used apparently under the assumption that it was non-static and changed the object it was called on. (cherry picked from commit 7242fe6e3360843f9ef5ce07b447de729323a3c8) Conflicts: include/com/sun/star/uno/Reference.h svtools/source/uno/treecontrolpeer.cxx Change-Id: I989a2a4ed3886d7f370855c9e8c1867e646c059b
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 1dc40e8092a0..b4cbb4d3bdef 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -1450,7 +1450,6 @@ bool TreeControlPeer::loadImage( const OUString& rURL, Image& rImage )
{
Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
Reference< XInterface > x( graphic::GraphicProvider::create(xContext) );
- mxGraphicProvider.query( x );
mxGraphicProvider = Reference< XGraphicProvider >( x, UNO_QUERY );
}