summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/cellvaluebinding.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-13 17:51:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-13 17:54:31 +0200
commit45f533aee9b44c702ae4f0ef039eddae9f132e51 (patch)
treefeaa63a6809ed9e2ff60665d845a8b2f2f43b6ac /sc/source/ui/unoobj/cellvaluebinding.cxx
parentee6ffa3f157aedc7775df198c914a225aea41b54 (diff)
loplugin:staticcall
Change-Id: I670fbcd83e368f2821d37a392cbc007b1f4cd55e
Diffstat (limited to 'sc/source/ui/unoobj/cellvaluebinding.cxx')
-rw-r--r--sc/source/ui/unoobj/cellvaluebinding.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/cellvaluebinding.cxx b/sc/source/ui/unoobj/cellvaluebinding.cxx
index 3b808f922354..3aee78f04be6 100644
--- a/sc/source/ui/unoobj/cellvaluebinding.cxx
+++ b/sc/source/ui/unoobj/cellvaluebinding.cxx
@@ -561,7 +561,7 @@ namespace calc
// first the sheets collection
Reference< XIndexAccess > xSheets;
if ( m_xDocument.is() )
- xSheets.set(xSheets.query( m_xDocument->getSheets( ) ));
+ xSheets.set(m_xDocument->getSheets( ), css::uno::UNO_QUERY);
OSL_ENSURE( xSheets.is(), "OCellValueBinding::initialize: could not retrieve the sheets!" );
if ( xSheets.is() )
@@ -588,7 +588,7 @@ namespace calc
throw Exception();
// TODO error message
- m_xCellText.set(m_xCellText.query( m_xCell ));
+ m_xCellText.set(m_xCell, css::uno::UNO_QUERY);
Reference<XModifyBroadcaster> xBroadcaster( m_xCell, UNO_QUERY );
if ( xBroadcaster.is() )