summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-05 16:29:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-05 16:35:05 +0000
commit2c0e1917c18711d6762e12042794b745f08cf62f (patch)
tree5dd448d49e9a7402cb7e5bf7cc6c3fb1887ee975 /sc/source
parentdb041f15b37255650418b13ad9f85f0938dc1bef (diff)
V801: Decreased performance
Change-Id: I48c716d87ce3e46f61393ae140bf2e05d9fd6241
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx2
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx4
-rw-r--r--sc/source/ui/view/drawvie4.cxx4
3 files changed, 5 insertions, 5 deletions
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;