include/sfx2/sidebar/IContextChangeReceiver.hxx | 2 +- sc/inc/afmtuno.hxx | 3 +-- sc/inc/cellsuno.hxx | 6 ++---- sc/inc/dapiuno.hxx | 3 +-- sc/inc/datauno.hxx | 3 +-- sc/inc/docuno.hxx | 3 +-- sc/inc/fmtuno.hxx | 6 ++---- sc/inc/srchuno.hxx | 3 +-- sc/inc/styleuno.hxx | 3 +-- sc/inc/textuno.hxx | 12 ++++-------- sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 8 +++----- sc/source/ui/sidebar/AlignmentPropertyPanel.hxx | 2 +- sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx | 9 +++------ sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx | 2 +- sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx | 8 +++----- sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx | 2 +- sc/source/ui/unoobj/afmtuno.cxx | 5 ++--- sc/source/ui/unoobj/cellsuno.cxx | 8 ++++---- sc/source/ui/unoobj/dapiuno.cxx | 15 +++++++-------- sc/source/ui/unoobj/datauno.cxx | 5 ++--- sc/source/ui/unoobj/docuno.cxx | 4 ++-- sc/source/ui/unoobj/fmtuno.cxx | 10 ++++------ sc/source/ui/unoobj/srchuno.cxx | 5 ++--- sc/source/ui/unoobj/styleuno.cxx | 5 ++--- sc/source/ui/unoobj/textuno.cxx | 16 ++++++++-------- svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 6 +++--- svx/source/sidebar/paragraph/ParaPropertyPanel.hxx | 2 +- svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 6 +++--- svx/source/sidebar/possize/PosSizePropertyPanel.hxx | 2 +- svx/source/sidebar/text/TextPropertyPanel.cxx | 6 +++--- svx/source/sidebar/text/TextPropertyPanel.hxx | 2 +- 31 files changed, 72 insertions(+), 100 deletions(-)
New commits: commit 3f6f21e6e7721bbca13c1e632c0247939538ba82 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Mar 5 20:48:50 2015 +0000 V801: Decreased performance Change-Id: Ia58f19c7121dc8a835436bcefc7fd1e3789407db diff --git a/include/sfx2/sidebar/IContextChangeReceiver.hxx b/include/sfx2/sidebar/IContextChangeReceiver.hxx index cf6e159..ea5c24a 100644 --- a/include/sfx2/sidebar/IContextChangeReceiver.hxx +++ b/include/sfx2/sidebar/IContextChangeReceiver.hxx @@ -31,7 +31,7 @@ class SFX2_DLLPUBLIC IContextChangeReceiver public: virtual ~IContextChangeReceiver (); - virtual void HandleContextChange (const EnumContext aContext) = 0; + virtual void HandleContextChange (const EnumContext& rContext) = 0; }; } } // end of namespace ::sd::sidebar diff --git a/sc/inc/afmtuno.hxx b/sc/inc/afmtuno.hxx index 8ebdb14..5e1da0e 100644 --- a/sc/inc/afmtuno.hxx +++ b/sc/inc/afmtuno.hxx @@ -224,8 +224,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const ::com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScAutoFormatObj* getImplementation( const ::com::sun::star::uno::Reference< - ::com::sun::star::uno::XInterface> xObj ); + static ScAutoFormatObj* getImplementation(const css::uno::Reference<css::uno::XInterface>& rObj); }; class ScAutoFormatFieldObj : public ::cppu::WeakImplHelper2< diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index ba9dedb..a4fc6fa 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -492,8 +492,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScCellRangesBase* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::uno::XInterface> xObj ); + static ScCellRangesBase* getImplementation(const css::uno::Reference<css::uno::XInterface>& rObj); // XTypeProvider virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() @@ -1259,8 +1258,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScTableSheetObj* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::uno::XInterface> xObj ); + static ScTableSheetObj* getImplementation(const css::uno::Reference< com::sun::star::uno::XInterface>& rObj); // XTypeProvider virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx index ab4bfe3..f034767 100644 --- a/sc/inc/dapiuno.hxx +++ b/sc/inc/dapiuno.hxx @@ -257,8 +257,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - SC_DLLPUBLIC static ScDataPilotDescriptorBase* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::sheet::XDataPilotDescriptor> xObj ); + SC_DLLPUBLIC static ScDataPilotDescriptorBase* getImplementation(const css::uno::Reference<css::sheet::XDataPilotDescriptor>& rObj); // XTypeProvider (override in ScDataPilotTableObj) virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx index f9c2b10..4153340 100644 --- a/sc/inc/datauno.hxx +++ b/sc/inc/datauno.hxx @@ -195,8 +195,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScSubTotalDescriptorBase* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::sheet::XSubTotalDescriptor> xObj ); + static ScSubTotalDescriptorBase* getImplementation(const css::uno::Reference<css::sheet::XSubTotalDescriptor>& rObj); // XServiceInfo virtual OUString SAL_CALL getImplementationName() diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index f277efc..7b10600 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -310,8 +310,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScModelObj* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::uno::XInterface> xObj ); + static ScModelObj* getImplementation(const css::uno::Reference<css::uno::XInterface>& rObj); /// XTypeProvider virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() diff --git a/sc/inc/fmtuno.hxx b/sc/inc/fmtuno.hxx index 44a8989..3ee15f1 100644 --- a/sc/inc/fmtuno.hxx +++ b/sc/inc/fmtuno.hxx @@ -130,8 +130,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScTableConditionalFormat* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::sheet::XSheetConditionalEntries> xObj ); + static ScTableConditionalFormat* getImplementation(const css::uno::Reference<css::sheet::XSheetConditionalEntries>& rObj); // XServiceInfo virtual OUString SAL_CALL getImplementationName() @@ -309,8 +308,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScTableValidationObj* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::beans::XPropertySet> xObj ); + static ScTableValidationObj* getImplementation(const css::uno::Reference<css::beans::XPropertySet>& rObj); // XServiceInfo virtual OUString SAL_CALL getImplementationName() diff --git a/sc/inc/srchuno.hxx b/sc/inc/srchuno.hxx index c7d3721..2a19c1b 100644 --- a/sc/inc/srchuno.hxx +++ b/sc/inc/srchuno.hxx @@ -102,8 +102,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScCellSearchObj* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::util::XSearchDescriptor> xObj ); + static ScCellSearchObj* getImplementation(const css::uno::Reference<css::util::XSearchDescriptor>& rObj); // XServiceInfo virtual OUString SAL_CALL getImplementationName() diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index d8234d3..b8abfed 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -377,8 +377,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const ::com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScStyleObj* getImplementation( const ::com::sun::star::uno::Reference< - ::com::sun::star::uno::XInterface> xObj ); + static ScStyleObj* getImplementation(const css::uno::Reference<css::uno::XInterface>& rObj); }; diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx index 303abfc..cfa4d3a 100644 --- a/sc/inc/textuno.hxx +++ b/sc/inc/textuno.hxx @@ -94,8 +94,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static rtl::Reference<ScHeaderFooterContentObj> getImplementation( const com::sun::star::uno::Reference< - com::sun::star::sheet::XHeaderFooterContent> xObj ); + static rtl::Reference<ScHeaderFooterContentObj> getImplementation(const css::uno::Reference<css::sheet::XHeaderFooterContent>& rObj); // XServiceInfo virtual OUString SAL_CALL getImplementationName() @@ -264,8 +263,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScCellTextCursor* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::uno::XInterface> xObj ); + static ScCellTextCursor* getImplementation(const css::uno::Reference< css::uno::XInterface>& rObj); }; class ScHeaderFooterTextCursor : public SvxUnoTextCursor @@ -292,8 +290,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScHeaderFooterTextCursor* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::uno::XInterface> xObj ); + static ScHeaderFooterTextCursor* getImplementation(const css::uno::Reference<css::uno::XInterface>& rObj); }; class ScDrawTextCursor : public SvxUnoTextCursor @@ -322,8 +319,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScDrawTextCursor* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::uno::XInterface> xObj ); + static ScDrawTextCursor* getImplementation(const css::uno::Reference<css::uno::XInterface>& rObj); }; // ScAnnotationTextCursor isn't needed anymore - SvxUnoTextCursor is used instead diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx index 10b1385..e10b538 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx @@ -229,17 +229,15 @@ void AlignmentPropertyPanel::DataChanged( } void AlignmentPropertyPanel::HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if(maContext == aContext) + if (maContext == rContext) { // Nothing to do. return; } - maContext = aContext; - - // todo + maContext = rContext; } void AlignmentPropertyPanel::NotifyItemUpdate( diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx index 32c705b..050c79d4 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx @@ -48,7 +48,7 @@ public: const DataChangedEvent& rEvent) SAL_OVERRIDE; virtual void HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( const sal_uInt16 nSId, diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx index bf4e1b3..322ceb5 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx @@ -249,18 +249,15 @@ void CellAppearancePropertyPanel::DataChanged( (void)rEvent; } -void CellAppearancePropertyPanel::HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) +void CellAppearancePropertyPanel::HandleContextChange(const ::sfx2::sidebar::EnumContext& rContext) { - if(maContext == aContext) + if (maContext == rContext) { // Nothing to do. return; } - maContext = aContext; - - // todo + maContext = rContext; } void CellAppearancePropertyPanel::NotifyItemUpdate( diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx index 60c2a5b..f8da7a5 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx @@ -59,7 +59,7 @@ public: const DataChangedEvent& rEvent) SAL_OVERRIDE; virtual void HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( const sal_uInt16 nSId, diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx index b9d5fdc..c37fc11 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx @@ -191,17 +191,15 @@ void NumberFormatPropertyPanel::DataChanged( } void NumberFormatPropertyPanel::HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if(maContext == aContext) + if(maContext == rContext) { // Nothing to do. return; } - maContext = aContext; - - // todo + maContext = rContext; } void NumberFormatPropertyPanel::NotifyItemUpdate( diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx index 984257e..5fe5df1 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx @@ -46,7 +46,7 @@ public: const DataChangedEvent& rEvent) SAL_OVERRIDE; virtual void HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( const sal_uInt16 nSId, diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx index d518965..865449f 100644 --- a/sc/source/ui/unoobj/afmtuno.cxx +++ b/sc/source/ui/unoobj/afmtuno.cxx @@ -433,11 +433,10 @@ const uno::Sequence<sal_Int8>& ScAutoFormatObj::getUnoTunnelId() return theScAutoFormatObjUnoTunnelId::get().getSeq(); } -ScAutoFormatObj* ScAutoFormatObj::getImplementation( - const uno::Reference<uno::XInterface> xObj ) +ScAutoFormatObj* ScAutoFormatObj::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScAutoFormatObj* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScAutoFormatObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 7fa1c76..4dcb1f7 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -4140,10 +4140,10 @@ const uno::Sequence<sal_Int8>& ScCellRangesBase::getUnoTunnelId() return theScCellRangesBaseUnoTunnelId::get().getSeq(); } -ScCellRangesBase* ScCellRangesBase::getImplementation( const uno::Reference<uno::XInterface> xObj ) +ScCellRangesBase* ScCellRangesBase::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScCellRangesBase* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScCellRangesBase*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; @@ -8658,10 +8658,10 @@ const uno::Sequence<sal_Int8>& ScTableSheetObj::getUnoTunnelId() return theScTableSheetObjUnoTunnelId::get().getSeq(); } -ScTableSheetObj* ScTableSheetObj::getImplementation( const uno::Reference<uno::XInterface> xObj ) +ScTableSheetObj* ScTableSheetObj::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScTableSheetObj* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScTableSheetObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index 5dba250..abdec8b 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -352,11 +352,11 @@ Reference<XDataPilotDescriptor> SAL_CALL ScDataPilotTablesObj::createDataPilotDe return NULL; } -static bool lcl_IsDuplicated( const Reference<XPropertySet> xDimProps ) +static bool lcl_IsDuplicated(const Reference<XPropertySet>& rDimProps) { try { - Any aAny = xDimProps->getPropertyValue( OUString( SC_UNO_DP_ORIGINAL ) ); + Any aAny = rDimProps->getPropertyValue( OUString( SC_UNO_DP_ORIGINAL ) ); Reference< XNamed > xOriginal( aAny, UNO_QUERY ); return xOriginal.is(); } @@ -366,11 +366,11 @@ static bool lcl_IsDuplicated( const Reference<XPropertySet> xDimProps ) return false; } -static OUString lcl_GetOriginalName( const Reference< XNamed > xDim ) +static OUString lcl_GetOriginalName(const Reference< XNamed >& rDim) { Reference< XNamed > xOriginal; - Reference< XPropertySet > xDimProps( xDim, UNO_QUERY ); + Reference< XPropertySet > xDimProps(rDim, UNO_QUERY); if ( xDimProps.is() ) { try @@ -384,7 +384,7 @@ static OUString lcl_GetOriginalName( const Reference< XNamed > xDim ) } if ( !xOriginal.is() ) - xOriginal = xDim; + xOriginal = rDim; return xOriginal->getName(); } @@ -1073,11 +1073,10 @@ const Sequence<sal_Int8>& ScDataPilotDescriptorBase::getUnoTunnelId() return theScDataPilotDescriptorBaseUnoTunnelId::get().getSeq(); } -ScDataPilotDescriptorBase* ScDataPilotDescriptorBase::getImplementation( - const Reference<XDataPilotDescriptor> xObj ) +ScDataPilotDescriptorBase* ScDataPilotDescriptorBase::getImplementation(const Reference<XDataPilotDescriptor>& rObj ) { ScDataPilotDescriptorBase* pRet = NULL; - Reference<lang::XUnoTunnel> xUT( xObj, UNO_QUERY ); + Reference<lang::XUnoTunnel> xUT(rObj, UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScDataPilotDescriptorBase*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index 4eb4dbc..6b32203 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -791,11 +791,10 @@ const uno::Sequence<sal_Int8>& ScSubTotalDescriptorBase::getUnoTunnelId() return theScSubTotalDescriptorBaseUnoTunnelId::get().getSeq(); } -ScSubTotalDescriptorBase* ScSubTotalDescriptorBase::getImplementation( - const uno::Reference<sheet::XSubTotalDescriptor> xObj ) +ScSubTotalDescriptorBase* ScSubTotalDescriptorBase::getImplementation(const uno::Reference<sheet::XSubTotalDescriptor>& rObj) { ScSubTotalDescriptorBase* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScSubTotalDescriptorBase*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index d8697d4..daa8f49 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -2196,10 +2196,10 @@ const uno::Sequence<sal_Int8>& ScModelObj::getUnoTunnelId() return theScModelObjUnoTunnelId::get().getSeq(); } -ScModelObj* ScModelObj::getImplementation( const uno::Reference<uno::XInterface> xObj ) +ScModelObj* ScModelObj::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScModelObj* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScModelObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx index aa99980..32b7c73 100644 --- a/sc/source/ui/unoobj/fmtuno.cxx +++ b/sc/source/ui/unoobj/fmtuno.cxx @@ -490,11 +490,10 @@ const uno::Sequence<sal_Int8>& ScTableConditionalFormat::getUnoTunnelId() return theScTableConditionalFormatUnoTunnelId::get().getSeq(); } -ScTableConditionalFormat* ScTableConditionalFormat::getImplementation( - const uno::Reference<sheet::XSheetConditionalEntries> xObj ) +ScTableConditionalFormat* ScTableConditionalFormat::getImplementation(const uno::Reference<sheet::XSheetConditionalEntries>& rObj) { ScTableConditionalFormat* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScTableConditionalFormat*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; @@ -1016,11 +1015,10 @@ const uno::Sequence<sal_Int8>& ScTableValidationObj::getUnoTunnelId() return theScTableValidationObjUnoTunnelId::get().getSeq(); } -ScTableValidationObj* ScTableValidationObj::getImplementation( - const uno::Reference<beans::XPropertySet> xObj ) +ScTableValidationObj* ScTableValidationObj::getImplementation(const uno::Reference<beans::XPropertySet>& rObj) { ScTableValidationObj* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScTableValidationObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/srchuno.cxx b/sc/source/ui/unoobj/srchuno.cxx index c0ad6a1..d750899 100644 --- a/sc/source/ui/unoobj/srchuno.cxx +++ b/sc/source/ui/unoobj/srchuno.cxx @@ -231,11 +231,10 @@ const uno::Sequence<sal_Int8>& ScCellSearchObj::getUnoTunnelId() return theScCellSearchObjUnoTunnelId::get().getSeq(); } -ScCellSearchObj* ScCellSearchObj::getImplementation( - const uno::Reference<util::XSearchDescriptor> xObj ) +ScCellSearchObj* ScCellSearchObj::getImplementation(const uno::Reference<util::XSearchDescriptor>& rObj) { ScCellSearchObj* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScCellSearchObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index 421658b..c9c7963 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1009,11 +1009,10 @@ const uno::Sequence<sal_Int8>& ScStyleObj::getUnoTunnelId() return theScStyleObjUnoTunnelId::get().getSeq(); } -ScStyleObj* ScStyleObj::getImplementation( - const uno::Reference<uno::XInterface> xObj ) +ScStyleObj* ScStyleObj::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScStyleObj* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScStyleObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx index 180752c..ac01ca7 100644 --- a/sc/source/ui/unoobj/textuno.cxx +++ b/sc/source/ui/unoobj/textuno.cxx @@ -165,10 +165,10 @@ const uno::Sequence<sal_Int8>& ScHeaderFooterContentObj::getUnoTunnelId() } rtl::Reference<ScHeaderFooterContentObj> ScHeaderFooterContentObj::getImplementation( - const uno::Reference<sheet::XHeaderFooterContent> xObj ) + const uno::Reference<sheet::XHeaderFooterContent>& rObj) { rtl::Reference<ScHeaderFooterContentObj> pRet; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScHeaderFooterContentObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; @@ -647,10 +647,10 @@ const uno::Sequence<sal_Int8>& ScCellTextCursor::getUnoTunnelId() return theScCellTextCursorUnoTunnelId::get().getSeq(); } -ScCellTextCursor* ScCellTextCursor::getImplementation( const uno::Reference<uno::XInterface> xObj ) +ScCellTextCursor* ScCellTextCursor::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScCellTextCursor* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScCellTextCursor*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; @@ -742,10 +742,10 @@ const uno::Sequence<sal_Int8>& ScHeaderFooterTextCursor::getUnoTunnelId() } ScHeaderFooterTextCursor* ScHeaderFooterTextCursor::getImplementation( - const uno::Reference<uno::XInterface> xObj ) + const uno::Reference<uno::XInterface>& rObj) { ScHeaderFooterTextCursor* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScHeaderFooterTextCursor*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; @@ -835,10 +835,10 @@ const uno::Sequence<sal_Int8>& ScDrawTextCursor::getUnoTunnelId() return theScDrawTextCursorUnoTunnelId::get().getSeq(); } -ScDrawTextCursor* ScDrawTextCursor::getImplementation( const uno::Reference<uno::XInterface> xObj ) +ScDrawTextCursor* ScDrawTextCursor::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScDrawTextCursor* pRet = NULL; - uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY ); + uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY); if (xUT.is()) pRet = reinterpret_cast<ScDrawTextCursor*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index 5a426d5..632ef57 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -76,15 +76,15 @@ ParaPropertyPanel* ParaPropertyPanel::Create ( } void ParaPropertyPanel::HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if (maContext == aContext) + if (maContext == rContext) { // Nothing to do. return; } - maContext = aContext; + maContext = rContext; switch (maContext.GetCombinedContext_DI()) { case CombinedEnumContext(Application_Calc, Context_DrawText): diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx index c61c1c8..a6b3f74 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx @@ -53,7 +53,7 @@ public: SfxBindings* GetBindings() { return mpBindings;} virtual void HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( const sal_uInt16 nSId, diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 6f6dceb..d4011d6 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -244,15 +244,15 @@ void PosSizePropertyPanel::DataChanged( } void PosSizePropertyPanel::HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if(maContext == aContext) + if (maContext == rContext) { // Nothing to do. return; } - maContext = aContext; + maContext = rContext; sal_Int32 nLayoutMode (0); switch (maContext.GetCombinedContext_DI()) diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx index a0b39cd..e9d6656 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx @@ -60,7 +60,7 @@ public: const DataChangedEvent& rEvent) SAL_OVERRIDE; virtual void HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( const sal_uInt16 nSId, diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx index 44d8a2c..5744f0a 100644 --- a/svx/source/sidebar/text/TextPropertyPanel.cxx +++ b/svx/source/sidebar/text/TextPropertyPanel.cxx @@ -119,12 +119,12 @@ TextPropertyPanel::~TextPropertyPanel (void) } void TextPropertyPanel::HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if (maContext == aContext) + if (maContext == rContext) return; - maContext = aContext; + maContext = rContext; mpToolBoxIncDec->Show(maContext.GetApplication_DI() != sfx2::sidebar::EnumContext::Application_Calc); bool bWriterText = false; diff --git a/svx/source/sidebar/text/TextPropertyPanel.hxx b/svx/source/sidebar/text/TextPropertyPanel.hxx index 9385dcc..f0734da 100644 --- a/svx/source/sidebar/text/TextPropertyPanel.hxx +++ b/svx/source/sidebar/text/TextPropertyPanel.hxx @@ -62,7 +62,7 @@ public: virtual void HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate(
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits