diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-12 12:08:00 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-14 11:37:19 +0000 |
commit | 62633dfe026bc3badf7066e5fb454036bae9cfdc (patch) | |
tree | b1a30ddd709ba80b8629d916d54c03d733651d12 /sdext | |
parent | aa458c31a5dfa2be8b6bd8f1b4e402ce8c27edde (diff) |
clang-tidy performance-unnecessary-value-param in various
Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907
Reviewed-on: https://gerrit.libreoffice.org/24019
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/impoptimizer.cxx | 2 | ||||
-rw-r--r-- | sdext/source/minimizer/optimizationstats.cxx | 2 | ||||
-rw-r--r-- | sdext/source/minimizer/optimizationstats.hxx | 2 | ||||
-rw-r--r-- | sdext/source/minimizer/unodialog.cxx | 2 | ||||
-rw-r--r-- | sdext/source/minimizer/unodialog.hxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/genericelements.cxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/genericelements.hxx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/sdext/source/minimizer/impoptimizer.cxx b/sdext/source/minimizer/impoptimizer.cxx index 53600ed7bdae..33c4e02ce122 100644 --- a/sdext/source/minimizer/impoptimizer.cxx +++ b/sdext/source/minimizer/impoptimizer.cxx @@ -565,7 +565,7 @@ bool ImpOptimizer::Optimize() return true; } -static void DispatchURL( Reference< XComponentContext > xContext, const OUString& sURL, Reference< XFrame > xFrame ) +static void DispatchURL( const Reference< XComponentContext >& xContext, const OUString& sURL, const Reference< XFrame >& xFrame ) { try { diff --git a/sdext/source/minimizer/optimizationstats.cxx b/sdext/source/minimizer/optimizationstats.cxx index 74c3c141f99e..d0f6adc167b3 100644 --- a/sdext/source/minimizer/optimizationstats.cxx +++ b/sdext/source/minimizer/optimizationstats.cxx @@ -71,7 +71,7 @@ void OptimizationStats::InitializeStatusValues( const uno::Sequence< PropertyVal } -void OptimizationStats::InitializeStatusValuesFromDocument( Reference< XModel > rxModel ) +void OptimizationStats::InitializeStatusValuesFromDocument( const Reference< XModel >& rxModel ) { try { diff --git a/sdext/source/minimizer/optimizationstats.hxx b/sdext/source/minimizer/optimizationstats.hxx index 545f4fb78259..29a15aa0afa2 100644 --- a/sdext/source/minimizer/optimizationstats.hxx +++ b/sdext/source/minimizer/optimizationstats.hxx @@ -45,7 +45,7 @@ class OptimizationStats void SetStatusValue( const PPPOptimizerTokenEnum eStat, const css::uno::Any& rStatValue ); const css::uno::Any* GetStatusValue( const PPPOptimizerTokenEnum eStat ) const; - void InitializeStatusValuesFromDocument( css::uno::Reference< css::frame::XModel > rxModel ); + void InitializeStatusValuesFromDocument( const css::uno::Reference< css::frame::XModel >& rxModel ); void InitializeStatusValues( const css::uno::Sequence< css::beans::PropertyValue >& rOptimizationStats ); css::beans::PropertyValues GetStatusSequence(); diff --git a/sdext/source/minimizer/unodialog.cxx b/sdext/source/minimizer/unodialog.cxx index 986d2866dfe9..325a1966d797 100644 --- a/sdext/source/minimizer/unodialog.cxx +++ b/sdext/source/minimizer/unodialog.cxx @@ -129,7 +129,7 @@ void UnoDialog::setVisible( const OUString& rName, bool bVisible ) } -Reference< XButton > UnoDialog::insertButton( const OUString& rName, Reference< XActionListener > xActionListener, +Reference< XButton > UnoDialog::insertButton( const OUString& rName, const Reference< XActionListener >& xActionListener, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XButton > xButton; diff --git a/sdext/source/minimizer/unodialog.hxx b/sdext/source/minimizer/unodialog.hxx index 0d8cfba3a6cc..f80f12295025 100644 --- a/sdext/source/minimizer/unodialog.hxx +++ b/sdext/source/minimizer/unodialog.hxx @@ -69,7 +69,7 @@ public: void setVisible( const OUString& rName, bool bVisible ); css::uno::Reference< css::awt::XButton > insertButton( const OUString& rName, - css::uno::Reference< css::awt::XActionListener > xActionListener, const css::uno::Sequence< OUString >& rPropertyNames, + const css::uno::Reference< css::awt::XActionListener >& xActionListener, const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rPropertyValues ); css::uno::Reference< css::awt::XFixedText > insertFixedText( const OUString& rName, diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx index 12a52dc7ecb9..2da786057667 100644 --- a/sdext/source/pdfimport/tree/genericelements.cxx +++ b/sdext/source/pdfimport/tree/genericelements.cxx @@ -306,7 +306,7 @@ void PageElement::updateParagraphGeometry( Element* pEle ) } } -bool PageElement::resolveHyperlink( std::list<Element*>::iterator link_it, std::list<Element*>& rElements ) +bool PageElement::resolveHyperlink( const std::list<Element*>::iterator& link_it, std::list<Element*>& rElements ) { HyperlinkElement* pLink = dynamic_cast<HyperlinkElement*>(*link_it); if( ! pLink ) // sanity check diff --git a/sdext/source/pdfimport/tree/genericelements.hxx b/sdext/source/pdfimport/tree/genericelements.hxx index fbed71e5b837..9bb702173af3 100644 --- a/sdext/source/pdfimport/tree/genericelements.hxx +++ b/sdext/source/pdfimport/tree/genericelements.hxx @@ -249,7 +249,7 @@ namespace pdfi {} private: // helper method for resolveHyperlinks - bool resolveHyperlink( std::list<Element*>::iterator link_it, std::list<Element*>& rElements ); + bool resolveHyperlink( const std::list<Element*>::iterator& link_it, std::list<Element*>& rElements ); public: virtual ~PageElement(); |