diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-05 16:29:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-05 16:35:05 +0000 |
commit | 2c0e1917c18711d6762e12042794b745f08cf62f (patch) | |
tree | 5dd448d49e9a7402cb7e5bf7cc6c3fb1887ee975 | |
parent | db041f15b37255650418b13ad9f85f0938dc1bef (diff) |
V801: Decreased performance
Change-Id: I48c716d87ce3e46f61393ae140bf2e05d9fd6241
-rw-r--r-- | sc/inc/viewuno.hxx | 5 | ||||
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/viewuno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/drawvie4.cxx | 4 | ||||
-rw-r--r-- | xmlsecurity/source/helper/xmlsignaturehelper2.cxx | 2 | ||||
-rw-r--r-- | xmlsecurity/source/helper/xmlsignaturehelper2.hxx | 2 |
6 files changed, 9 insertions, 10 deletions
diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx index 9a489f99f880..7d8131aa1e92 100644 --- a/sc/inc/viewuno.hxx +++ b/sc/inc/viewuno.hxx @@ -390,9 +390,8 @@ public: sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); - static ScTabViewObj* getImplementation( const com::sun::star::uno::Reference< - com::sun::star::uno::XInterface> xObj ); + static const css::uno::Sequence<sal_Int8>& getUnoTunnelId(); + static ScTabViewObj* 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/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 8305dd1c8c4d..e83069d32347 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -135,7 +135,7 @@ std::string StackVarEnumToString(StackVar const e) } #ifdef SAL_DETAIL_ENABLE_LOG_INFO -std::string linenumberify(const std::string s) +std::string linenumberify(const std::string& s) { std::stringstream ss; int linenumber = 1; diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index 83902cacb59b..c15c8cd4f920 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -2231,10 +2231,10 @@ const uno::Sequence<sal_Int8>& ScTabViewObj::getUnoTunnelId() return theScTabViewObjUnoTunnelId::get().getSeq(); } -ScTabViewObj* ScTabViewObj::getImplementation( const uno::Reference<uno::XInterface> xObj ) +ScTabViewObj* ScTabViewObj::getImplementation(const uno::Reference<uno::XInterface>& rObj) { ScTabViewObj* 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<ScTabViewObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId()))); return pRet; diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx index b3b6e849d20a..108d714815c9 100644 --- a/sc/source/ui/view/drawvie4.cxx +++ b/sc/source/ui/view/drawvie4.cxx @@ -164,9 +164,9 @@ void getRangeFromDataSource( uno::Reference< chart2::data::XDataSource > xDataSo } } -void getRangeFromErrorBar(const uno::Reference< chart2::XChartDocument > xChartDoc, std::vector<OUString>& rRangeRep) +void getRangeFromErrorBar(const uno::Reference< chart2::XChartDocument >& rChartDoc, std::vector<OUString>& rRangeRep) { - uno::Reference <chart2::XDiagram > xDiagram = xChartDoc->getFirstDiagram(); + uno::Reference <chart2::XDiagram > xDiagram = rChartDoc->getFirstDiagram(); if(!xDiagram.is()) return; diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx index 5fd84a7c1241..64e3deaba755 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx @@ -32,7 +32,7 @@ using namespace com::sun::star; -ImplXMLSignatureListener::ImplXMLSignatureListener( const Link& rCreationResultListenerListener, const Link rVerifyResultListenerListener, const Link rStartSignatureElement ) +ImplXMLSignatureListener::ImplXMLSignatureListener(const Link& rCreationResultListenerListener, const Link& rVerifyResultListenerListener, const Link& rStartSignatureElement) { maCreationResultListenerListener = rCreationResultListenerListener; maVerifyResultListenerListener = rVerifyResultListenerListener; diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.hxx b/xmlsecurity/source/helper/xmlsignaturehelper2.hxx index e58a5fcb627e..abe0a393164b 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.hxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.hxx @@ -57,7 +57,7 @@ private: com::sun::star::xml::sax::XDocumentHandler > m_xNextHandler; public: - ImplXMLSignatureListener( const Link& rCreationResultListenerListener, const Link rVerifyResultListenerListener, const Link rStartVerifySignatureElement ); + ImplXMLSignatureListener(const Link& rCreationResultListenerListener, const Link& rVerifyResultListenerListener, const Link& rStartVerifySignatureElement); virtual ~ImplXMLSignatureListener(); void setNextHandler(com::sun::star::uno::Reference< |