diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-04-19 08:14:26 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-04-19 11:10:13 +0200 |
commit | 3176bfdc3a872114d290e2de3cc19f30d9e70b88 (patch) | |
tree | eb02388b63f82c20e8f9f98603307fbb3a4bcef4 /toolkit | |
parent | 8bb2ce61c03886d8b323288dc92d74fc1e45da4e (diff) |
Remove gcc3 workaround here too
Change-Id: I5626c31ebc2c2a1a3946e88f30c64b5442284842
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/tree/treecontrol.cxx | 45 |
1 files changed, 15 insertions, 30 deletions
diff --git a/toolkit/source/controls/tree/treecontrol.cxx b/toolkit/source/controls/tree/treecontrol.cxx index 8cb01de1fe9f..b1c79405bb0a 100644 --- a/toolkit/source/controls/tree/treecontrol.cxx +++ b/toolkit/source/controls/tree/treecontrol.cxx @@ -226,8 +226,7 @@ void SAL_CALL UnoTreeControl::addSelectionChangeListener( const Reference< XSele { // maSelectionListeners acts as a proxy, // add it to the peer if this is the first listener added to that proxy - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->addSelectionChangeListener(&maSelectionListeners); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->addSelectionChangeListener(&maSelectionListeners); } } @@ -239,8 +238,7 @@ void SAL_CALL UnoTreeControl::removeSelectionChangeListener( const Reference< XS { // maSelectionListeners acts as a proxy, // remove it from the peer if this is the last listener removed from that proxy - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->removeSelectionChangeListener(&maSelectionListeners); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->removeSelectionChangeListener(&maSelectionListeners); } maSelectionListeners.removeInterface( xListener ); } @@ -258,16 +256,14 @@ sal_Bool SAL_CALL UnoTreeControl::addSelection( const Any& rSelection ) throw (I void SAL_CALL UnoTreeControl::removeSelection( const Any& rSelection ) throw (IllegalArgumentException, RuntimeException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->removeSelection(rSelection); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->removeSelection(rSelection); } void SAL_CALL UnoTreeControl::clearSelection() throw (RuntimeException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->clearSelection(); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->clearSelection(); } @@ -304,8 +300,7 @@ OUString SAL_CALL UnoTreeControl::getDefaultExpandedGraphicURL() throw (RuntimeE void SAL_CALL UnoTreeControl::setDefaultExpandedGraphicURL( const OUString& _defaultexpansiongraphicurl ) throw (RuntimeException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->setDefaultExpandedGraphicURL(_defaultexpansiongraphicurl); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->setDefaultExpandedGraphicURL(_defaultexpansiongraphicurl); } @@ -319,8 +314,7 @@ OUString SAL_CALL UnoTreeControl::getDefaultCollapsedGraphicURL() throw (Runtime void SAL_CALL UnoTreeControl::setDefaultCollapsedGraphicURL( const OUString& _defaultcollapsedgraphicurl ) throw (RuntimeException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->setDefaultCollapsedGraphicURL(_defaultcollapsedgraphicurl); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->setDefaultCollapsedGraphicURL(_defaultcollapsedgraphicurl); } @@ -341,8 +335,7 @@ sal_Bool SAL_CALL UnoTreeControl::isNodeCollapsed( const Reference< XTreeNode >& void SAL_CALL UnoTreeControl::makeNodeVisible( const Reference< XTreeNode >& xNode ) throw (RuntimeException, ExpandVetoException, IllegalArgumentException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->makeNodeVisible(xNode); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->makeNodeVisible(xNode); } @@ -356,16 +349,14 @@ sal_Bool SAL_CALL UnoTreeControl::isNodeVisible( const Reference< XTreeNode >& x void SAL_CALL UnoTreeControl::expandNode( const Reference< XTreeNode >& xNode ) throw (RuntimeException, ExpandVetoException, IllegalArgumentException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->expandNode(xNode); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->expandNode(xNode); } void SAL_CALL UnoTreeControl::collapseNode( const Reference< XTreeNode >& xNode ) throw (RuntimeException, ExpandVetoException, IllegalArgumentException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->collapseNode(xNode); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->collapseNode(xNode); } @@ -377,8 +368,7 @@ void SAL_CALL UnoTreeControl::addTreeExpansionListener( const Reference< XTreeEx { // maSelectionListeners acts as a proxy, // add it to the peer if this is the first listener added to that proxy - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->addTreeExpansionListener(&maTreeExpansionListeners); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->addTreeExpansionListener(&maTreeExpansionListeners); } } @@ -390,8 +380,7 @@ void SAL_CALL UnoTreeControl::removeTreeExpansionListener( const Reference< XTre { // maSelectionListeners acts as a proxy, // remove it from the peer if this is the last listener removed from that proxy - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->removeTreeExpansionListener(&maTreeExpansionListeners); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->removeTreeExpansionListener(&maTreeExpansionListeners); } maTreeExpansionListeners.removeInterface( xListener ); } @@ -435,16 +424,14 @@ sal_Bool SAL_CALL UnoTreeControl::stopEditing() throw (RuntimeException, std::ex void SAL_CALL UnoTreeControl::cancelEditing() throw (RuntimeException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->cancelEditing(); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->cancelEditing(); } void SAL_CALL UnoTreeControl::startEditingAtNode( const Reference< XTreeNode >& xNode ) throw (IllegalArgumentException, RuntimeException, std::exception) { - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->startEditingAtNode(xNode); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->startEditingAtNode(xNode); } @@ -456,8 +443,7 @@ void SAL_CALL UnoTreeControl::addTreeEditListener( const Reference< XTreeEditLis { // maSelectionListeners acts as a proxy, // add it to the peer if this is the first listener added to that proxy - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->addTreeEditListener(&maTreeEditListeners); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->addTreeEditListener(&maTreeEditListeners); } } @@ -469,8 +455,7 @@ void SAL_CALL UnoTreeControl::removeTreeEditListener( const Reference< XTreeEdit { // maSelectionListeners acts as a proxy, // remove it from the peer if this is the last listener removed from that proxy - Reference< XWindowPeer > xGcc3WorkaroundTemporary( getPeer()); - Reference< XTreeControl >( xGcc3WorkaroundTemporary, UNO_QUERY_THROW )->removeTreeEditListener(&maTreeEditListeners); + Reference< XTreeControl >( getPeer(), UNO_QUERY_THROW )->removeTreeEditListener(&maTreeEditListeners); } maTreeEditListeners.removeInterface( xListener ); } |