[Libreoffice-commits] core.git: sc/source

Mihai Varga mihai.mv13 at gmail.com
Wed Mar 5 03:12:42 PST 2014


 sc/source/core/opencl/formulagroupcl.cxx |    6 -
 sc/source/core/opencl/op_addin.cxx       |    2 
 sc/source/core/opencl/op_addin.hxx       |    2 
 sc/source/core/opencl/op_array.cxx       |    6 -
 sc/source/core/opencl/op_array.hxx       |    6 -
 sc/source/core/opencl/op_database.cxx    |   22 ++---
 sc/source/core/opencl/op_database.hxx    |   22 ++---
 sc/source/core/opencl/op_financial.cxx   |  106 ++++++++++++------------
 sc/source/core/opencl/op_financial.hxx   |  106 ++++++++++++------------
 sc/source/core/opencl/op_logical.cxx     |    8 -
 sc/source/core/opencl/op_logical.hxx     |    8 -
 sc/source/core/opencl/op_math.cxx        |  128 ++++++++++++++---------------
 sc/source/core/opencl/op_math.hxx        |  128 ++++++++++++++---------------
 sc/source/core/opencl/op_spreadsheet.cxx |    2 
 sc/source/core/opencl/op_spreadsheet.hxx |    2 
 sc/source/core/opencl/op_statistical.cxx |  134 +++++++++++++++----------------
 sc/source/core/opencl/op_statistical.hxx |  134 +++++++++++++++----------------
 sc/source/core/opencl/opbase.cxx         |    2 
 sc/source/core/opencl/opbase.hxx         |    4 
 19 files changed, 414 insertions(+), 414 deletions(-)

New commits:
commit 888cf44109a515982162f836d88b0c08624d3913
Author: Mihai Varga <mihai.mv13 at gmail.com>
Date:   Tue Mar 4 17:18:29 2014 +0200

    fdo#39440 the sSymName parameter is now passed by reference
    
    Change-Id: I7292dd2a03c94fd5366220a62334ef6ebac9296c
    Reviewed-on: https://gerrit.libreoffice.org/8450
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 923e4e8..1ecee21 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -1201,7 +1201,7 @@ public:
     typedef ParallelReductionVectorRef<VectorRef> ParallelNumericRange;
 
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
     {
         ss << "\ndouble " << sSymName;
         ss << "_"<< BinFuncName() <<"(";
@@ -1321,7 +1321,7 @@ class Binary: public SlidingFunctionBase
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
     {
         ss << "\ndouble " << sSymName;
         ss << "_"<< BinFuncName() <<"(";
@@ -1347,7 +1347,7 @@ class SumOfProduct: public SlidingFunctionBase
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
     {
         size_t nCurWindowSize = 0;
         FormulaToken *tmpCur = NULL;
diff --git a/sc/source/core/opencl/op_addin.cxx b/sc/source/core/opencl/op_addin.cxx
index 6b05527..3f11ae9 100644
--- a/sc/source/core/opencl/op_addin.cxx
+++ b/sc/source/core/opencl/op_addin.cxx
@@ -23,7 +23,7 @@ using namespace formula;
 namespace sc { namespace opencl {
 
 void OpBesselj::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() << "(";
diff --git a/sc/source/core/opencl/op_addin.hxx b/sc/source/core/opencl/op_addin.hxx
index aebe23f..6993660 100644
--- a/sc/source/core/opencl/op_addin.hxx
+++ b/sc/source/core/opencl/op_addin.hxx
@@ -18,7 +18,7 @@ class OpBesselj: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Besselj"; }
 };
 
diff --git a/sc/source/core/opencl/op_array.cxx b/sc/source/core/opencl/op_array.cxx
index 60f2a40..4311ab6 100644
--- a/sc/source/core/opencl/op_array.cxx
+++ b/sc/source/core/opencl/op_array.cxx
@@ -23,7 +23,7 @@ using namespace formula;
 namespace sc { namespace opencl {
 
 void OpSumX2MY2::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -80,7 +80,7 @@ void OpSumX2MY2::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpSumX2PY2::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -136,7 +136,7 @@ void OpSumX2PY2::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSumXMY2::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
diff --git a/sc/source/core/opencl/op_array.hxx b/sc/source/core/opencl/op_array.hxx
index 36e7723..5e74ebb 100644
--- a/sc/source/core/opencl/op_array.hxx
+++ b/sc/source/core/opencl/op_array.hxx
@@ -18,7 +18,7 @@ class OpSumX2MY2: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "SumX2MY2"; }
 };
 
@@ -26,7 +26,7 @@ class OpSumX2PY2: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "SumX2PY2"; }
 };
 
@@ -34,7 +34,7 @@ class OpSumXMY2: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "SumXMY2"; }
 };
 }}
diff --git a/sc/source/core/opencl/op_database.cxx b/sc/source/core/opencl/op_database.cxx
index 8ac8a99..1c321f6 100644
--- a/sc/source/core/opencl/op_database.cxx
+++ b/sc/source/core/opencl/op_database.cxx
@@ -22,7 +22,7 @@
 namespace sc { namespace opencl {
 
 void OpDmax::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -152,7 +152,7 @@ void OpDmax::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDmin::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -283,7 +283,7 @@ void OpDmin::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDproduct::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -412,7 +412,7 @@ void OpDproduct::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDaverage::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -546,7 +546,7 @@ void OpDaverage::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDstdev::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -731,7 +731,7 @@ void OpDstdev::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDstdevp::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -916,7 +916,7 @@ void OpDstdevp::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDsum::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1046,7 +1046,7 @@ void OpDsum::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDvar::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1231,7 +1231,7 @@ void OpDvar::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDvarp::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1416,7 +1416,7 @@ void OpDvarp::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDcount::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1547,7 +1547,7 @@ void OpDcount::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpDcount2::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
diff --git a/sc/source/core/opencl/op_database.hxx b/sc/source/core/opencl/op_database.hxx
index 00db355..27852c8 100644
--- a/sc/source/core/opencl/op_database.hxx
+++ b/sc/source/core/opencl/op_database.hxx
@@ -19,7 +19,7 @@ class OpDmax: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dmax"; }
 };
 
@@ -27,7 +27,7 @@ class OpDmin: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dmin"; }
 };
 
@@ -35,7 +35,7 @@ class OpDproduct: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dproduct"; }
 };
 
@@ -43,7 +43,7 @@ class OpDaverage: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Daverage"; }
 };
 
@@ -51,7 +51,7 @@ class OpDstdev: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dstdev"; }
 };
 
@@ -59,7 +59,7 @@ class OpDstdevp: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dstdevp"; }
 };
 
@@ -67,7 +67,7 @@ class OpDsum: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dsum"; }
 };
 
@@ -75,7 +75,7 @@ class OpDvar: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dvar"; }
 };
 
@@ -83,7 +83,7 @@ class OpDvarp: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dvarp"; }
 };
 
@@ -91,7 +91,7 @@ class OpDcount: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dcount"; }
 };
 
@@ -99,7 +99,7 @@ class OpDcount2: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments);
+             const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Dcount2"; }
 };
 
diff --git a/sc/source/core/opencl/op_financial.cxx b/sc/source/core/opencl/op_financial.cxx
index 6084964..07e2946 100644
--- a/sc/source/core/opencl/op_financial.cxx
+++ b/sc/source/core/opencl/op_financial.cxx
@@ -25,7 +25,7 @@ namespace sc { namespace opencl {
 #include "opinlinefun_finacial.cxx"
 
 void RRI::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -102,7 +102,7 @@ void RRI::GenSlidingWindowFunction(
 }
 
 void OpNominal::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &
+    std::stringstream &ss, const std::string &sSymName, SubArguments &
 vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -174,7 +174,7 @@ vSubArguments)
 }
 
 void OpDollarde::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -231,7 +231,7 @@ void OpDollarde::GenSlidingWindowFunction(
 }
 
 void OpDollarfr::GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments)
+        const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -297,7 +297,7 @@ void OpDISC::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpDISC::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() << "(";
@@ -378,7 +378,7 @@ void OpINTRATE::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpINTRATE::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() << "(";
@@ -452,7 +452,7 @@ void OpFV::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpFV::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -504,7 +504,7 @@ void OpIPMT::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpIPMT::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -574,7 +574,7 @@ void OpIPMT::GenSlidingWindowFunction(std::stringstream& ss,
     ss << "}";
 }
 void OpISPMT::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() <<"(";
@@ -637,7 +637,7 @@ void OpISPMT::GenSlidingWindowFunction(std::stringstream& ss,
 }
 
 void OpDuration::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() <<"(";
@@ -712,7 +712,7 @@ void OpDuration_ADD::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpDuration_ADD::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -774,7 +774,7 @@ void OpMDuration::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpMDuration::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -841,7 +841,7 @@ void OpMDuration::GenSlidingWindowFunction(std::stringstream& ss,
     ss << "}";
 }
 void Fvschedule::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken* pCur = vSubArguments[1]->GetFormulaToken();
     assert(pCur);
@@ -891,7 +891,7 @@ void Cumipmt::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetRmz_new);funs.insert(GetZw_new);
 }
 void Cumipmt::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &
+    std::stringstream &ss, const std::string &sSymName, SubArguments &
 vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -1020,7 +1020,7 @@ vSubArguments)
 }
 
 void IRR::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() << "(";
@@ -1233,7 +1233,7 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void XNPV::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *pCur = vSubArguments[1]->GetFormulaToken();
     assert(pCur);
@@ -1339,7 +1339,7 @@ void XNPV::GenSlidingWindowFunction(
     funs.insert(DaysInMonth);funs.insert(IsLeapYear);
 }
 void PriceMat::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1464,7 +1464,7 @@ void PriceMat::GenSlidingWindowFunction(
 }
 
 void OpSYD::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1558,7 +1558,7 @@ void OpSYD::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void MIRR::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken* pCur = vSubArguments[0]->GetFormulaToken();
     assert(pCur);
@@ -1640,7 +1640,7 @@ void MIRR::GenSlidingWindowFunction(
 }
 
 void OpEffective::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() << "(";
@@ -1713,7 +1713,7 @@ void OpEffective::GenSlidingWindowFunction(std::stringstream& ss,
     funs.insert(IsLeapYear);
 }
 void OpTbilleq::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1799,7 +1799,7 @@ void OpCumprinc::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetRmz_new);funs.insert(GetZw_new);
 }
 void OpCumprinc::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1938,7 +1938,7 @@ void OpAccrint::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetNullDate);funs.insert(GetDiffDate);
 }
 void OpAccrint::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName,
+    std::stringstream &ss, const std::string &sSymName,
     SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -2067,7 +2067,7 @@ void OpAccrintm::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetNullDate);funs.insert(GetDiffDate);
 }
 void OpAccrintm::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2207,7 +2207,7 @@ void OpAccrintm::GenSlidingWindowFunction(
 
 
 void OpYield::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2364,7 +2364,7 @@ void OpYield::GenSlidingWindowFunction(
 }
 
 void OpSLN::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2448,7 +2448,7 @@ void OpSLN::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpYieldmat::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2586,7 +2586,7 @@ void OpYieldmat::GenSlidingWindowFunction(
 }
 
 void OpPMT::GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments)
+        const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2663,7 +2663,7 @@ void OpPMT::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpNPV::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2823,7 +2823,7 @@ void OpNPV::GenSlidingWindowFunction(std::stringstream &ss,
     funs.insert(coupnum_new);funs.insert(getPrice_new);
  }
 void OpPrice::GenSlidingWindowFunction(std::stringstream &ss,
-          const std::string sSymName, SubArguments &vSubArguments)
+          const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2911,7 +2911,7 @@ void OpOddlprice::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetYearFrac);
 }
 void OpOddlprice::GenSlidingWindowFunction(std::stringstream &ss,
-          const std::string sSymName, SubArguments &vSubArguments)
+          const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -3043,7 +3043,7 @@ void OpOddlyield::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetYearFrac);funs.insert(GetOddlyield);
 }
 void OpOddlyield::GenSlidingWindowFunction(std::stringstream &ss,
-          const std::string sSymName, SubArguments &vSubArguments)
+          const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -3179,7 +3179,7 @@ void OpPriceDisc::BinInlineFun(std::set<std::string>& decls,
     funs.insert(IsLeapYear);funs.insert(GetDiffDate);
 }
 void OpPriceDisc::GenSlidingWindowFunction(std::stringstream &ss,
-          const std::string sSymName, SubArguments &vSubArguments)
+          const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -3253,7 +3253,7 @@ void OpPriceDisc::GenSlidingWindowFunction(std::stringstream &ss,
     ss <<"}";
 }
 void OpNper::GenSlidingWindowFunction(std::stringstream &ss,
-         const std::string sSymName, SubArguments &vSubArguments)
+         const std::string &sSymName, SubArguments &vSubArguments)
  {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -3343,7 +3343,7 @@ void OpPPMT::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpPPMT::GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments)
+        const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -3460,7 +3460,7 @@ void OpCoupdaybs::BinInlineFun(std::set<std::string>& decls,
     funs.insert(coupdaybs_new);
 }
 void OpCoupdaybs::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &
+    std::stringstream &ss, const std::string &sSymName, SubArguments &
 vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -3561,7 +3561,7 @@ void OpCoupdays::BinInlineFun(std::set<std::string>& decls,
     funs.insert(coupdays_new);
 }
 void OpCoupdays::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &
+    std::stringstream &ss, const std::string &sSymName, SubArguments &
 vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -3657,7 +3657,7 @@ void OpCouppcd::BinInlineFun(std::set<std::string>& decls,
     funs.insert(lcl_GetCouppcd);
 }
 void OpCouppcd::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName,
+    std::stringstream &ss, const std::string &sSymName,
     SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -3754,7 +3754,7 @@ void OpCoupncd::BinInlineFun(std::set<std::string>& decls,
     funs.insert(lcl_GetCoupncd);
 }
 void OpCoupncd::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &
+    std::stringstream &ss, const std::string &sSymName, SubArguments &
 vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -3864,7 +3864,7 @@ void OpCoupdaysnc::BinInlineFun(std::set<std::string>& decls,
     funs.insert(coupdays_new);
 }
 void OpCoupdaysnc::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName,
+    std::stringstream &ss, const std::string &sSymName,
     SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -3961,7 +3961,7 @@ void OpCoupnum::BinInlineFun(std::set<std::string>& decls,
     funs.insert(coupnum_new);
 }
 void OpCoupnum::GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments)
+        const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4050,7 +4050,7 @@ void OpAmordegrc::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetNullDate);funs.insert(GetYearFrac);
 }
 void OpAmordegrc::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4214,7 +4214,7 @@ void OpAmorlinc::BinInlineFun(std::set<std::string>& decls,
     funs.insert(GetYearFrac);
 }
 void OpAmorlinc::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4361,7 +4361,7 @@ void OpReceived::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpReceived::GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments)
+        const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4470,7 +4470,7 @@ void OpReceived::GenSlidingWindowFunction(std::stringstream &ss,
     funs.insert(DaysInMonth);funs.insert(IsLeapYear);
 }
 void OpYielddisc::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4602,7 +4602,7 @@ void OpYielddisc::GenSlidingWindowFunction(
 }
 
 void OpTbillprice::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4637,7 +4637,7 @@ void OpTbillprice::GenSlidingWindowFunction(
 }
 
 void RATE::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4782,7 +4782,7 @@ void RATE::GenSlidingWindowFunction(
 }
 
 void OpTbillyield::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4867,7 +4867,7 @@ void OpTbillyield::GenSlidingWindowFunction(
     ss << "}\n";
 }
 void OpDDB::GenSlidingWindowFunction(std::stringstream& ss,
-            const std::string sSymName, SubArguments& vSubArguments)
+            const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -4979,7 +4979,7 @@ void OpDDB::GenSlidingWindowFunction(std::stringstream& ss,
     ss <<"}";
 }
 void OpPV::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &
+    std::stringstream &ss, const std::string &sSymName, SubArguments &
 vSubArguments)
 {
     ss << "\ndouble " << sSymName;
@@ -5131,7 +5131,7 @@ tmpCur4);
 }
 
 void OpVDB::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -5174,7 +5174,7 @@ void OpVDB::GenSlidingWindowFunction(
 }
 
 void OpXirr::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::DoubleVectorRefToken*pCurDVR= static_cast<const
@@ -5292,7 +5292,7 @@ void OpXirr::GenSlidingWindowFunction(std::stringstream &ss,
 
 }
 void OpDB::GenSlidingWindowFunction(std::stringstream& ss,
-            const std::string sSymName, SubArguments& vSubArguments)
+            const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
diff --git a/sc/source/core/opencl/op_financial.hxx b/sc/source/core/opencl/op_financial.hxx
index 34019be..2ddfa05 100644
--- a/sc/source/core/opencl/op_financial.hxx
+++ b/sc/source/core/opencl/op_financial.hxx
@@ -18,7 +18,7 @@ class RRI: public SlidingFunctionBase
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual bool takeString() const { return false; }
     virtual bool takeNumeric() const { return true; }
 };
@@ -34,7 +34,7 @@ class OpNominal: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "NOMINAL_ADD"; }
 };
 
@@ -44,7 +44,7 @@ public:
         virtual std::string GetBottom(void) { return "0"; }
 
         virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
 
         virtual std::string BinFuncName(void) const { return "Dollarde"; }
 
@@ -56,7 +56,7 @@ public:
         virtual std::string GetBottom(void) { return "0"; }
 
         virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
 
         virtual std::string BinFuncName(void) const { return "Dollarfr"; }
 
@@ -68,7 +68,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 
     virtual std::string BinFuncName(void) const { return "DISC"; }
@@ -80,7 +80,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 
     virtual std::string BinFuncName(void) const { return "INTRATE"; }
@@ -92,7 +92,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream& ss,
-            const std::string sSymName, SubArguments& vSubArguments);
+            const std::string &sSymName, SubArguments& vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,
         std::set<std::string>& );
 
@@ -106,7 +106,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream& ss,
-            const std::string sSymName, SubArguments& vSubArguments);
+            const std::string &sSymName, SubArguments& vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,
         std::set<std::string>& );
 
@@ -120,7 +120,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "ISPMT"; }
 };
@@ -131,7 +131,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream& ss,
-            const std::string sSymName, SubArguments& vSubArguments);
+            const std::string &sSymName, SubArguments& vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Duration"; }
 };
@@ -142,7 +142,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream& ss,
-            const std::string sSymName, SubArguments& vSubArguments);
+            const std::string &sSymName, SubArguments& vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,
                                      std::set<std::string>& );
 
@@ -155,7 +155,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream& ss,
-            const std::string sSymName, SubArguments& vSubArguments);
+            const std::string &sSymName, SubArguments& vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,
         std::set<std::string>& );
 
@@ -166,14 +166,14 @@ class Fvschedule: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 };
 
 class Cumipmt: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
 
@@ -181,7 +181,7 @@ class IRR: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 };
 
 class OpIRR: public IRR
@@ -195,21 +195,21 @@ class XNPV: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 };
 
 class PriceMat: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
 class OpSYD: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
      virtual std::string BinFuncName(void) const { return "SYD"; }
 };
@@ -218,7 +218,7 @@ class MIRR: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 };
 
 class OpEffective:public Normal
@@ -227,7 +227,7 @@ public:
     virtual std::string GetBottom(void) { return "0"; }
 
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Effect_Add"; }
 };
@@ -251,7 +251,7 @@ class OpTbilleq: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "fTbilleq"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
@@ -262,7 +262,7 @@ class OpCumprinc: public Normal
 public:
     virtual std::string GetBottom(void) { return "0"; }
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "cumprinc"; }
 };
@@ -273,7 +273,7 @@ class OpAccrintm: public Normal
     virtual std::string GetBottom(void) { return "0"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Accrintm"; }
 };
 class OpAccrint: public Normal
@@ -281,7 +281,7 @@ class OpAccrint: public Normal
  public:
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Accrint"; }
 };
 
@@ -289,7 +289,7 @@ class OpYield: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Yield"; }
      virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
@@ -299,7 +299,7 @@ class OpSLN: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "SLN"; }
 };
 
@@ -314,7 +314,7 @@ class OpYieldmat: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Yieldmat"; }
      virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
@@ -323,14 +323,14 @@ class OpPMT: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "PMT"; }
 };
 class OpNPV: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "NPV"; }
 };
 
@@ -338,7 +338,7 @@ class OpPrice: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Price"; }
 };
@@ -347,14 +347,14 @@ class OpNper: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "NPER"; }
 };
 class OpOddlprice: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>&,
         std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Oddlprice"; }
@@ -363,7 +363,7 @@ class OpOddlyield: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,
         std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Oddlyield"; }
@@ -372,7 +372,7 @@ class OpPriceDisc: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>&,
         std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "PriceDisc"; }
@@ -381,7 +381,7 @@ class OpPPMT: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "PPMT"; }
 };
@@ -391,7 +391,7 @@ class OpCoupdaybs:public Normal
 public:
     virtual std::string GetBottom(void) { return "0";}
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Coupdaybs"; }
 
@@ -402,7 +402,7 @@ class OpCoupdays:public Normal
 public:
     virtual std::string GetBottom(void) { return "0";}
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Coupdays";}
 
@@ -413,7 +413,7 @@ class OpCoupdaysnc:public Normal
 public:
     virtual std::string GetBottom(void) { return "0";}
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Coupdaysnc"; }
 
@@ -423,7 +423,7 @@ class OpCouppcd:public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Couppcd"; }
 
@@ -433,7 +433,7 @@ class OpCoupncd:public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
     virtual std::string BinFuncName(void) const { return "Coupncd"; }
 
@@ -444,7 +444,7 @@ class OpCoupnum:public Normal
 public:
     virtual std::string GetBottom(void) { return "0";}
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
     virtual std::string BinFuncName(void) const { return "Coupnum"; }
 
@@ -453,7 +453,7 @@ class OpDDB:public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
      virtual std::string BinFuncName(void) const { return "DDB"; }
 };
@@ -461,7 +461,7 @@ class OpDB:public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
      virtual std::string BinFuncName(void) const { return "DB"; }
 };
@@ -470,7 +470,7 @@ class OpAmordegrc:public Normal
 public:
     virtual std::string GetBottom(void) { return "0";}
     virtual void GenSlidingWindowFunction(std::stringstream& ss,
-        const std::string sSymName, SubArguments& vSubArguments);
+        const std::string &sSymName, SubArguments& vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
     virtual std::string BinFuncName(void) const { return "Amordegrc"; }
 };
@@ -479,7 +479,7 @@ class OpAmorlinc:public Normal
 public:
     virtual std::string GetBottom(void) { return "0";}
     virtual void GenSlidingWindowFunction(std::stringstream& ss,
-        const std::string sSymName, SubArguments& vSubArguments);
+        const std::string &sSymName, SubArguments& vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
     virtual std::string BinFuncName(void) const { return "Amorlinc"; }
 };
@@ -489,7 +489,7 @@ class OpReceived:public Normal
 public:
     virtual std::string GetBottom(void) { return "0"; }
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Received"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
@@ -498,7 +498,7 @@ class OpYielddisc: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Yielddisc"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
@@ -507,7 +507,7 @@ class OpTbillprice: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "fTbillprice"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
@@ -523,7 +523,7 @@ class RATE: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
 };
 class OpIntrate: public RATE {
@@ -536,7 +536,7 @@ class OpTbillyield: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "fTbillyield"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
@@ -553,7 +553,7 @@ class OpPV: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-                const std::string sSymName, SubArguments &vSubArguments);
+                const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "PV"; }
 };
 
@@ -561,7 +561,7 @@ class OpVDB: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "VDB"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
@@ -571,7 +571,7 @@ class OpXirr: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Xirr"; }
 };
diff --git a/sc/source/core/opencl/op_logical.cxx b/sc/source/core/opencl/op_logical.cxx
index 440b660..b20fd09 100644
--- a/sc/source/core/opencl/op_logical.cxx
+++ b/sc/source/core/opencl/op_logical.cxx
@@ -23,7 +23,7 @@ using namespace formula;
 
 namespace sc { namespace opencl {
 void OpAnd::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -107,7 +107,7 @@ void OpAnd::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpOr::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -190,7 +190,7 @@ void OpOr::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}\n";
 }
 void OpNot::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -229,7 +229,7 @@ void OpNot::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpXor::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
diff --git a/sc/source/core/opencl/op_logical.hxx b/sc/source/core/opencl/op_logical.hxx
index 50aa469..b121723 100644
--- a/sc/source/core/opencl/op_logical.hxx
+++ b/sc/source/core/opencl/op_logical.hxx
@@ -19,7 +19,7 @@ class OpAnd: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "And"; }
 };
 
@@ -27,21 +27,21 @@ class OpOr: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Or"; }
 };
 class OpNot: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Not"; }
 };
 class OpXor: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Xor"; }
 };
 
diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx
index c06f55c..d1b1ed6 100644
--- a/sc/source/core/opencl/op_math.cxx
+++ b/sc/source/core/opencl/op_math.cxx
@@ -24,7 +24,7 @@ using namespace formula;
 namespace sc { namespace opencl {
 
 void OpCos::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -52,7 +52,7 @@ void OpCos::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSec::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -85,7 +85,7 @@ void OpCosh::BinInlineFun(std::set<std::string>& decls,
     funs.insert(local_cosh);
 }
 void OpSecH::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -112,7 +112,7 @@ void OpSecH::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpMROUND::GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments)
+        const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -182,7 +182,7 @@ void OpMROUND::GenSlidingWindowFunction(std::stringstream &ss,
     ss<<"}";
 }
 void OpCosh::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -211,7 +211,7 @@ void OpCosh::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpCot::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -272,7 +272,7 @@ void OpCoth::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpCoth::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -308,7 +308,7 @@ void OpCombina::BinInlineFun(std::set<std::string>& decls,
 }
 
 void OpCombina::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -364,7 +364,7 @@ void OpCombina::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpEven::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -400,7 +400,7 @@ void OpEven::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpMod::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
 #ifdef ISNAN
     FormulaToken *tmpCur0 = vSubArguments[0]->GetFormulaToken();
@@ -454,7 +454,7 @@ void OpMod::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpLog::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -504,7 +504,7 @@ void OpLog::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpCsc::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -532,7 +532,7 @@ void OpCsc::GenSlidingWindowFunction(
     ss << "}";
 }
 void OpCountIfs::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::DoubleVectorRefToken*pCurDVR= static_cast<const
@@ -586,7 +586,7 @@ void OpCountIfs::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::DoubleVectorRefToken*pCurDVR= static_cast<const
@@ -798,7 +798,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpCscH::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -826,7 +826,7 @@ void OpCscH::GenSlidingWindowFunction(
     ss << "}";
 }
 void OpExp::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -876,7 +876,7 @@ void OpExp::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpAverageIfs::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::DoubleVectorRefToken*pCurDVR= static_cast<const
@@ -936,7 +936,7 @@ void OpAverageIfs::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpLog10::GenSlidingWindowFunction(std::stringstream &ss,
-               const std::string sSymName, SubArguments &vSubArguments)
+               const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -965,7 +965,7 @@ void OpLog10::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpSinh::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -994,7 +994,7 @@ void OpSinh::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSin::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1045,7 +1045,7 @@ void OpSin::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpAbs::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1083,7 +1083,7 @@ void OpArcCos::BinInlineFun(std::set<std::string>& decls,
     funs.insert(atan2Content);
 }
 void OpArcCos::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1111,7 +1111,7 @@ void OpArcCos::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpArcCosHyp::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1156,7 +1156,7 @@ void OpArcCosHyp::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpTan::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1206,7 +1206,7 @@ void OpTan::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpTanH::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
     const formula::SingleVectorRefToken*tmpCurDVR= static_cast<const
@@ -1235,7 +1235,7 @@ void OpTanH::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpPower::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1307,7 +1307,7 @@ void OpPower::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSqrt::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1358,7 +1358,7 @@ void OpSqrt::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpArcCot::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1385,7 +1385,7 @@ void OpArcCot::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpArcCotHyp::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1441,7 +1441,7 @@ void OpArcSin::BinInlineFun(std::set<std::string>& decls,
     funs.insert(atan2Content);
 }
 void OpArcSin::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1468,7 +1468,7 @@ void OpArcSin::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpArcSinHyp::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1518,7 +1518,7 @@ void OpArcTan2::BinInlineFun(std::set<std::string>& decls,
     funs.insert(atan2Content);
 }
 void OpArcTan2::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1557,7 +1557,7 @@ void OpArcTan2::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpArcTan::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1584,7 +1584,7 @@ void OpArcTan::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpArcTanH::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1613,7 +1613,7 @@ void OpArcTanH::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpBitAnd::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1652,7 +1652,7 @@ void OpBitAnd::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpLn::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName, SubArguments &vSubArguments)
+    std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1675,7 +1675,7 @@ void OpLn::GenSlidingWindowFunction(
 }
 
 void OpRound::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1699,7 +1699,7 @@ void OpRound::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpRoundUp::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1737,7 +1737,7 @@ void OpRoundUp::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpRoundDown::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1770,7 +1770,7 @@ void OpRoundDown::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpInt::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1793,7 +1793,7 @@ void OpInt::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpNegSub::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1813,7 +1813,7 @@ void OpNegSub::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpRadians::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1834,7 +1834,7 @@ void OpRadians::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpIsEven::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1855,7 +1855,7 @@ void OpIsEven::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpIsOdd::GenSlidingWindowFunction(std::stringstream &ss,
-             const std::string sSymName, SubArguments &vSubArguments)
+             const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -1876,7 +1876,7 @@ void OpIsOdd::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpOdd::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName,
+    std::stringstream &ss, const std::string &sSymName,
     SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
@@ -1916,7 +1916,7 @@ void OpOdd::GenSlidingWindowFunction(
     ss << "}";
 }
 void OpCountIf::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2047,7 +2047,7 @@ void OpCountIf::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSumIf::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2197,7 +2197,7 @@ void OpSumIf::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpTrunc::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2278,7 +2278,7 @@ void OpTrunc::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpFloor::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName,
+    std::stringstream &ss, const std::string &sSymName,
     SubArguments &vSubArguments)
 {
     FormulaToken *tmpCur = vSubArguments[0]->GetFormulaToken();
@@ -2325,7 +2325,7 @@ void OpFloor::GenSlidingWindowFunction(
     ss << "}\n";
 }
 void OpBitOr::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2366,7 +2366,7 @@ void OpBitOr::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpBitXor::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2408,7 +2408,7 @@ void OpBitXor::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpBitLshift::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2452,7 +2452,7 @@ void OpBitLshift::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpBitRshift::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2498,7 +2498,7 @@ void OpBitRshift::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSumSQ::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2612,7 +2612,7 @@ void OpSumSQ::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSqrtPi::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2664,7 +2664,7 @@ void OpSqrtPi::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpCeil::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2729,7 +2729,7 @@ void OpCeil::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpKombin::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -2818,7 +2818,7 @@ void OpKombin::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}\n";
 }
 void OpConvert::GenSlidingWindowFunction(
-    std::stringstream &ss, const std::string sSymName,
+    std::stringstream &ss, const std::string &sSymName,
     SubArguments &vSubArguments)
 {
     int arg1=vSubArguments[1]->GetFormulaToken()->GetString().\
@@ -2879,7 +2879,7 @@ void OpConvert::GenSlidingWindowFunction(
 }
 
 void OpProduct::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"( ";
@@ -2958,7 +2958,7 @@ void OpProduct::GenSlidingWindowFunction(std::stringstream &ss,
         ss << "}";
 }
 void OpAverageIf::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
 
     ss << "\ndouble " << sSymName;
@@ -3117,7 +3117,7 @@ void OpAverageIf::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpDeg::GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments)
+            const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -3169,7 +3169,7 @@ void OpDeg::GenSlidingWindowFunction(std::stringstream &ss,
 }
 
 void OpFact::GenSlidingWindowFunction(std::stringstream& ss,
-    const std::string sSymName, SubArguments& vSubArguments)
+    const std::string &sSymName, SubArguments& vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_" << BinFuncName() << "(";
@@ -3240,7 +3240,7 @@ void OpFact::GenSlidingWindowFunction(std::stringstream& ss,
     ss << "}";
 }
 void OpQuotient::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     ss << "\ndouble " << sSymName;
     ss << "_"<< BinFuncName() <<"(";
@@ -3271,7 +3271,7 @@ void OpQuotient::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "}";
 }
 void OpSeriesSum::GenSlidingWindowFunction(std::stringstream &ss,
-    const std::string sSymName, SubArguments &vSubArguments)
+    const std::string &sSymName, SubArguments &vSubArguments)
 {
     if( vSubArguments.size() != 4){return;}
     ss << "\ndouble " << sSymName;
diff --git a/sc/source/core/opencl/op_math.hxx b/sc/source/core/opencl/op_math.hxx
index 29214bc..a8d3d7f 100644
--- a/sc/source/core/opencl/op_math.hxx
+++ b/sc/source/core/opencl/op_math.hxx
@@ -18,7 +18,7 @@ class OpCos: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Cos"; }
 };
@@ -26,7 +26,7 @@ class OpSec: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Sec"; }
 };
@@ -34,7 +34,7 @@ class OpSecH: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "SecH"; }
 };
@@ -42,7 +42,7 @@ class OpMROUND: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "MROUND"; }
 };
@@ -52,7 +52,7 @@ class OpCsc: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Csc"; }
 };
 class OpSumIfs: public CheckVariables
@@ -60,7 +60,7 @@ class OpSumIfs: public CheckVariables
 public:
     OpSumIfs(void): CheckVariables(), mNeedReductionKernel(false) {}
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "SumIfs"; }
     bool NeedReductionKernel(void) const { return mNeedReductionKernel; }
 protected:
@@ -70,7 +70,7 @@ class OpCosh: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Cosh"; }
 };
@@ -78,27 +78,27 @@ class OpSinh: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Sinh"; }
 };
 class OpSin: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Sin"; }
 };
 class OpAbs:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScAbs"; }
 };
 class OpArcCos:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScACos"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
@@ -106,7 +106,7 @@ public:
 class OpArcCosHyp:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "1.0"; }
     virtual std::string BinFuncName(void) const { return "ScACosH"; }
 };
@@ -114,7 +114,7 @@ class OpTan: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Tan"; }
 };
@@ -122,7 +122,7 @@ class OpTanH: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "TanH"; }
 };
@@ -130,28 +130,28 @@ class OpSqrt: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Sqrt"; }
 };
 class OpArcCot:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScACot"; }
 };
 class OpArcCotHyp:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "2.0"; }
     virtual std::string BinFuncName(void) const { return "ScACotH"; }
 };
 class OpArcSin:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScASin"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
@@ -159,7 +159,7 @@ public:
 class OpArcSinHyp:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScASinH"; }
 };
@@ -167,14 +167,14 @@ class OpTrunc: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Trunc"; }
 };
 class OpArcTan2:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScATan2"; }
     virtual void BinInlineFun(std::set<std::string>& ,std::set<std::string>&);
@@ -182,49 +182,49 @@ public:
 class OpArcTan:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScATan"; }
 };
 class OpArcTanH:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScATanH"; }
 };
 class OpBitAnd:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
         virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScBitAnd"; }
 };
 class OpBitOr:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScBitOr"; }
 };
 class OpBitXor:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScBitXor"; }
 };
 class OpBitLshift:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScBitLshift"; }
 };
 class OpBitRshift:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScBitRshift"; }
 };
@@ -232,63 +232,63 @@ class OpLn: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Ln"; }
 };
 class OpRound: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Round"; }
 };
 class OpRoundUp: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "RoundUp"; }
 };
 class OpRoundDown: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "RoundDown"; }
 };
 class OpInt: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Int"; }
 };
 class OpRadians: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Radians"; }
 };
 class OpIsEven: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "IsEven"; }
 };
 class OpIsOdd: public CheckVariables
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "IsOdd"; }
 };
 class OpCot: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "Cot"; }
 };
@@ -296,7 +296,7 @@ class OpSumSQ: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
 
     virtual std::string BinFuncName(void) const { return "SumSQ"; }
 };
@@ -304,7 +304,7 @@ class OpCoth: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual void BinInlineFun(std::set<std::string>& ,
             std::set<std::string>& );
     virtual std::string BinFuncName(void) const { return "Coth"; }
@@ -313,34 +313,34 @@ class OpPower: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Power"; }
 };
 class OpOdd: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Odd"; }
 };
 class OpFloor: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Floor"; }
 };
 class OpCscH: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "CscH"; }
 };
 class OpCeil:public Normal{
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-        const std::string sSymName, SubArguments &vSubArguments);
+        const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string GetBottom(void) { return "0.0"; }
     virtual std::string BinFuncName(void) const { return "ScCeil"; }
 };
@@ -348,21 +348,21 @@ class OpExp: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Exp"; }
 };
 class OpLog10: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,
-            const std::string sSymName, SubArguments &vSubArguments);
+            const std::string &sSymName, SubArguments &vSubArguments);
     virtual std::string BinFuncName(void) const { return "Log10"; }
 };
 class OpConvert: public Normal
 {
 public:
     virtual void GenSlidingWindowFunction(std::stringstream &ss,

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list