[Libreoffice-commits] core.git: sc/inc sc/source
Noel Grandin
noel at peralex.com
Mon Jun 1 03:30:18 PDT 2015
sc/inc/dpcache.hxx | 2
sc/source/core/data/conditio.cxx | 2
sc/source/core/data/documen8.cxx | 2
sc/source/core/data/dpdimsave.cxx | 2
sc/source/core/data/dpfilteredcache.cxx | 2
sc/source/core/data/table3.cxx | 10 -
sc/source/core/data/table4.cxx | 2
sc/source/core/opencl/formulagroupcl.cxx | 34 ++---
sc/source/core/opencl/op_addin.cxx | 4
sc/source/core/opencl/op_array.cxx | 6
sc/source/core/opencl/op_database.cxx | 22 +--
sc/source/core/opencl/op_financial.cxx | 120 +++++++++---------
sc/source/core/opencl/op_logical.cxx | 16 +-
sc/source/core/opencl/op_math.cxx | 164 ++++++++++++-------------
sc/source/core/opencl/op_spreadsheet.cxx | 2
sc/source/core/opencl/op_statistical.cxx | 140 ++++++++++-----------
sc/source/core/opencl/opbase.cxx | 6
sc/source/core/tool/formulaopt.cxx | 2
sc/source/filter/xml/XMLExportDDELinks.cxx | 2
sc/source/filter/xml/XMLStylesExportHelper.cxx | 2
sc/source/filter/xml/xmlexprt.cxx | 14 +-
sc/source/filter/xml/xmlexprt.hxx | 4
sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 2
sc/source/ui/dbgui/filtdlg.cxx | 8 -
sc/source/ui/docshell/pagedata.cxx | 4
sc/source/ui/undo/undotab.cxx | 2
sc/source/ui/unoobj/cellsuno.cxx | 6
sc/source/ui/unoobj/chart2uno.cxx | 2
sc/source/ui/unoobj/dapiuno.cxx | 2
sc/source/ui/unoobj/datauno.cxx | 2
sc/source/ui/unoobj/dispuno.cxx | 6
sc/source/ui/view/dbfunc3.cxx | 2
sc/source/ui/view/gridwin.cxx | 6
sc/source/ui/view/tabvwsh5.cxx | 2
sc/source/ui/view/viewfun2.cxx | 6
35 files changed, 305 insertions(+), 305 deletions(-)
New commits:
commit aa25be596516d4acd831d89006fed78c4b974dac
Author: Noel Grandin <noel at peralex.com>
Date: Fri May 29 11:08:52 2015 +0200
loplugin:loopvartoosmall
Change-Id: Iafe55d4aa65a380d8d338edd54338f53a3e920dc
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx
index 863b217..b778086 100644
--- a/sc/inc/dpcache.hxx
+++ b/sc/inc/dpcache.hxx
@@ -104,7 +104,7 @@ public:
private:
ScDocument* mpDoc;
- long mnColumnCount;
+ SCCOL mnColumnCount;
/**
* All pivot table objects that references this cache.
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 889feb9..c9a12ed 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1831,7 +1831,7 @@ bool ScConditionalFormat::EqualEntries( const ScConditionalFormat& r ) const
return false;
//TODO: Test for same entries in reverse order?
- for (sal_uInt16 i=0; i<size(); i++)
+ for (size_t i=0; i<size(); i++)
if ( ! (maEntries == r.maEntries ) )
return false;
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 2bdfa30..5c094ad 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -1059,7 +1059,7 @@ void ScDocument::UpdateAreaLinks()
return;
const ::sfx2::SvBaseLinks& rLinks = pMgr->GetLinks();
- for (sal_uInt16 i=0; i<rLinks.size(); i++)
+ for (size_t i=0; i<rLinks.size(); i++)
{
::sfx2::SvBaseLink* pBase = *rLinks[i];
if (pBase->ISA(ScAreaLink))
diff --git a/sc/source/core/data/dpdimsave.cxx b/sc/source/core/data/dpdimsave.cxx
index ffa721d..ef27c12 100644
--- a/sc/source/core/data/dpdimsave.cxx
+++ b/sc/source/core/data/dpdimsave.cxx
@@ -348,7 +348,7 @@ void fillDateGroupDimension(
// Now, populate the group items in the cache.
rCache.ResetGroupItems(nGroupDim, rDateInfo, nDatePart);
- for (sal_Int32 nValue = nStart; nValue <= nEnd; ++nValue)
+ for (long nValue = nStart; nValue <= nEnd; ++nValue)
rCache.SetGroupItem(nGroupDim, ScDPItemData(nDatePart, nValue));
// add first/last entry (min/max)
diff --git a/sc/source/core/data/dpfilteredcache.cxx b/sc/source/core/data/dpfilteredcache.cxx
index ec47eab..eacff34 100644
--- a/sc/source/core/data/dpfilteredcache.cxx
+++ b/sc/source/core/data/dpfilteredcache.cxx
@@ -311,7 +311,7 @@ void ScDPFilteredCache::filterTable(const vector<Criterion>& rCriteria, Sequence
const std::unordered_set<sal_Int32>& rRepeatIfEmptyDims)
{
sal_Int32 nRowSize = getRowSize();
- sal_Int32 nColSize = getColSize();
+ SCCOL nColSize = getColSize();
if (!nRowSize)
// no data to filter.
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 5b3a04f..044802e 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -902,7 +902,7 @@ void ScTable::SortReorderByColumn(
// Cut formula grouping at row and reference boundaries before the reordering.
ScRange aSortRange(nStart, nRow1, nTab, nLast, nRow2, nTab);
- for (SCCOL nCol = nStart; nCol <= nLast; ++nCol)
+ for (SCCOL nCol = nStart; nCol <= (SCCOL)nLast; ++nCol)
aCol[nCol].SplitFormulaGroupByRelativeRef(aSortRange);
// Collect all listeners of cell broadcasters of sorted range.
@@ -911,7 +911,7 @@ void ScTable::SortReorderByColumn(
if (!pArray->IsUpdateRefs())
{
// Collect listeners of cell broadcasters.
- for (SCCOL nCol = nStart; nCol <= nLast; ++nCol)
+ for (SCCOL nCol = nStart; nCol <= (SCCOL)nLast; ++nCol)
aCol[nCol].CollectListeners(aCellListeners, nRow1, nRow2);
// Remove any duplicate listener entries. We must ensure that we
@@ -952,7 +952,7 @@ void ScTable::SortReorderByColumn(
// Reset formula cell positions which became out-of-sync after column reordering.
bool bUpdateRefs = pArray->IsUpdateRefs();
- for (SCCOL nCol = nStart; nCol <= nLast; ++nCol)
+ for (SCCOL nCol = nStart; nCol <= (SCCOL)nLast; ++nCol)
aCol[nCol].ResetFormulaCellPositions(nRow1, nRow2, bUpdateRefs);
if (pArray->IsUpdateRefs())
@@ -970,7 +970,7 @@ void ScTable::SortReorderByColumn(
// Collect all listeners within sorted range ahead of time.
std::vector<SvtListener*> aListeners;
- for (SCCOL nCol = nStart; nCol <= nLast; ++nCol)
+ for (SCCOL nCol = nStart; nCol <= (SCCOL)nLast; ++nCol)
aCol[nCol].CollectListeners(aListeners, nRow1, nRow2);
// Get all area listeners that listen on one column within the range
@@ -1020,7 +1020,7 @@ void ScTable::SortReorderByColumn(
// Re-join formulas at row boundaries now that all the references have
// been adjusted for column reordering.
- for (SCCOL nCol = nStart; nCol <= nLast; ++nCol)
+ for (SCCOL nCol = nStart; nCol <= (SCCOL)nLast; ++nCol)
{
sc::CellStoreType& rCells = aCol[nCol].maCells;
sc::CellStoreType::position_type aPos = rCells.position(nRow1);
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index c82469b..46025f9 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -346,7 +346,7 @@ void ScTable::FillAnalyse( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
// fdo#39500 don't deduce increment from multiple equal list entries
bool bAllSame = true;
- for (sal_uInt16 i = 0; i < nCount; ++i)
+ for (SCSIZE i = 0; i < nCount; ++i)
{
OUString aTestStr;
GetString(static_cast<SCCOL>(nCol + i* nAddX), static_cast<SCROW>(nRow + i * nAddY), aTestStr);
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 368c525..d6c7ede 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -1030,7 +1030,7 @@ public:
ss << "}\n\t";
}
// The residual of mod outLoopSize
- for (unsigned int count = nCurWindowSize / outLoopSize * outLoopSize; count < nCurWindowSize; count++)
+ for (size_t count = nCurWindowSize / outLoopSize * outLoopSize; count < nCurWindowSize; count++)
{
ss << "i = " << count << ";\n\t";
if (count == nCurWindowSize / outLoopSize * outLoopSize)
@@ -1073,7 +1073,7 @@ public:
ss << "}\n\t";
}
// The residual of mod outLoopSize
- for (unsigned int count = nCurWindowSize / outLoopSize * outLoopSize; count < nCurWindowSize; count++)
+ for (size_t count = nCurWindowSize / outLoopSize * outLoopSize; count < nCurWindowSize; count++)
{
ss << "i = " << count << ";\n\t";
if (count == nCurWindowSize / outLoopSize * outLoopSize)
@@ -1675,7 +1675,7 @@ public:
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -1792,7 +1792,7 @@ public:
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
assert(vSubArguments.size() == 2);
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -1820,7 +1820,7 @@ public:
const formula::DoubleVectorRefToken* pCurDVR = NULL;
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1859,7 +1859,7 @@ public:
ss << "i = outLoop*" << outLoopSize << "+" << count << ";\n";
if (count == 0)
{
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
tmpCur = vSubArguments[i]->GetFormulaToken();
if (ocPush == tmpCur->GetOpCode())
@@ -1881,7 +1881,7 @@ public:
}
temp3 << "tmp = fsum(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
temp3 << "*";
@@ -1929,13 +1929,13 @@ public:
ss << "}\n\t";
}
//The residual of mod outLoopSize
- for (unsigned int count = nCurWindowSize / outLoopSize * outLoopSize;
+ for (size_t count = nCurWindowSize / outLoopSize * outLoopSize;
count < nCurWindowSize; count++)
{
ss << "i =" << count << ";\n";
if (count == nCurWindowSize / outLoopSize * outLoopSize)
{
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
tmpCur = vSubArguments[i]->GetFormulaToken();
if (ocPush == tmpCur->GetOpCode())
@@ -1957,7 +1957,7 @@ public:
}
temp4 << "tmp = fsum(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
temp4 << "*";
@@ -2417,13 +2417,13 @@ public:
virtual void GenSlidingWindowFunction( std::stringstream& ss ) SAL_OVERRIDE
{
- for (unsigned i = 0; i < mvSubArguments.size(); i++)
+ for (size_t i = 0; i < mvSubArguments.size(); i++)
mvSubArguments[i]->GenSlidingWindowFunction(ss);
mpCodeGen->GenSlidingWindowFunction(ss, mSymName, mvSubArguments);
}
virtual void GenDeclRef( std::stringstream& ss ) const SAL_OVERRIDE
{
- for (unsigned i = 0; i < mvSubArguments.size(); i++)
+ for (size_t i = 0; i < mvSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2444,7 +2444,7 @@ public:
virtual size_t GetWindowSize() const SAL_OVERRIDE
{
size_t nCurWindowSize = 0;
- for (unsigned i = 0; i < mvSubArguments.size(); i++)
+ for (size_t i = 0; i < mvSubArguments.size(); i++)
{
size_t nCurChildWindowSize = mvSubArguments[i]->GetWindowSize();
nCurWindowSize = (nCurWindowSize < nCurChildWindowSize) ?
@@ -2472,7 +2472,7 @@ public:
if (!nested)
{
ss << mSymName << "_" << mpCodeGen->BinFuncName() << "(";
- for (unsigned i = 0; i < mvSubArguments.size(); i++)
+ for (size_t i = 0; i < mvSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2503,7 +2503,7 @@ public:
virtual std::string DumpOpName() const SAL_OVERRIDE
{
std::string t = "_" + mpCodeGen->BinFuncName();
- for (unsigned i = 0; i < mvSubArguments.size(); i++)
+ for (size_t i = 0; i < mvSubArguments.size(); i++)
t = t + mvSubArguments[i]->DumpOpName();
return t;
}
@@ -2511,7 +2511,7 @@ public:
std::set<std::string>& funs ) const SAL_OVERRIDE
{
mpCodeGen->BinInlineFun(decls, funs);
- for (unsigned i = 0; i < mvSubArguments.size(); i++)
+ for (size_t i = 0; i < mvSubArguments.size(); i++)
mvSubArguments[i]->DumpInlineFun(decls, funs);
}
virtual ~DynamicKernelSoPArguments()
@@ -2593,7 +2593,7 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments(const ScCalcConfig& config,
{
size_t nChildren = ft->Children.size();
- for (unsigned i = 0; i < nChildren; i++)
+ for (size_t i = 0; i < nChildren; i++)
{
FormulaTreeNodeRef rChild = ft->Children[i];
if (!rChild)
diff --git a/sc/source/core/opencl/op_addin.cxx b/sc/source/core/opencl/op_addin.cxx
index 3bb7c60..76830c8 100644
--- a/sc/source/core/opencl/op_addin.cxx
+++ b/sc/source/core/opencl/op_addin.cxx
@@ -27,7 +27,7 @@ void OpBesselj::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -194,7 +194,7 @@ void OpGestep::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
diff --git a/sc/source/core/opencl/op_array.cxx b/sc/source/core/opencl/op_array.cxx
index b642c3b..ef4d6c3 100644
--- a/sc/source/core/opencl/op_array.cxx
+++ b/sc/source/core/opencl/op_array.cxx
@@ -27,7 +27,7 @@ void OpSumX2MY2::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -84,7 +84,7 @@ void OpSumX2PY2::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -140,7 +140,7 @@ void OpSumXMY2::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
diff --git a/sc/source/core/opencl/op_database.cxx b/sc/source/core/opencl/op_database.cxx
index 285da07..6626e71 100644
--- a/sc/source/core/opencl/op_database.cxx
+++ b/sc/source/core/opencl/op_database.cxx
@@ -25,7 +25,7 @@ void OpDmax::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -155,7 +155,7 @@ void OpDmin::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -286,7 +286,7 @@ void OpDproduct::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -415,7 +415,7 @@ void OpDaverage::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -549,7 +549,7 @@ void OpDstdev::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -734,7 +734,7 @@ void OpDstdevp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -919,7 +919,7 @@ void OpDsum::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1049,7 +1049,7 @@ void OpDvar::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1234,7 +1234,7 @@ void OpDvarp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1419,7 +1419,7 @@ void OpDcount::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1550,7 +1550,7 @@ void OpDcount2::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
diff --git a/sc/source/core/opencl/op_financial.cxx b/sc/source/core/opencl/op_financial.cxx
index 2e3c59f..e7fc6c1 100644
--- a/sc/source/core/opencl/op_financial.cxx
+++ b/sc/source/core/opencl/op_financial.cxx
@@ -29,7 +29,7 @@ void RRI::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -99,7 +99,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -110,7 +110,7 @@ vSubArguments)
ss << "double temp = 0;\n\t";
ss << "int gid0 = get_global_id(0);\n\t";
ss << "double tmp0=0,tmp1=0;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -158,7 +158,7 @@ void OpDollarde::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -209,7 +209,7 @@ void OpDollarfr::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -269,7 +269,7 @@ void OpDISC::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -283,7 +283,7 @@ void OpDISC::GenSlidingWindowFunction(std::stringstream& ss,
ss << " double arg2 = " << GetBottom() << ";\n";
ss << " double arg3 = " << GetBottom() << ";\n";
ss << " double arg4 = " << GetBottom() << ";\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -340,7 +340,7 @@ void OpINTRATE::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -354,7 +354,7 @@ void OpINTRATE::GenSlidingWindowFunction(std::stringstream& ss,
ss << " double arg2 = " << GetBottom() << ";\n";
ss << " double arg3 = " << GetBottom() << ";\n";
ss << " double arg4 = " << GetBottom() << ";\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -405,7 +405,7 @@ void OpFV::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -455,7 +455,7 @@ void OpIPMT::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -523,7 +523,7 @@ void OpISPMT::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -536,7 +536,7 @@ void OpISPMT::GenSlidingWindowFunction(std::stringstream& ss,
ss << " double arg1 = " << GetBottom() << ";\n";
ss << " double arg2 = " << GetBottom() << ";\n";
ss << " double arg3 = " << GetBottom() << ";\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -577,7 +577,7 @@ void OpDuration::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -589,7 +589,7 @@ void OpDuration::GenSlidingWindowFunction(std::stringstream& ss,
ss << " double arg0 = " << GetBottom() << ";\n";
ss << " double arg1 = " << GetBottom() << ";\n";
ss << " double arg2 = " << GetBottom() << ";\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -643,7 +643,7 @@ void OpDuration_ADD::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -703,7 +703,7 @@ void OpMDuration::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -718,7 +718,7 @@ void OpMDuration::GenSlidingWindowFunction(std::stringstream& ss,
ss << " double arg3 = " << GetBottom() << ";\n";
ss << " double arg4 = " << GetBottom() << ";\n";
ss << " double arg5 = " << GetBottom() << ";\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -766,7 +766,7 @@ void Fvschedule::GenSlidingWindowFunction(
size_t nCurWindowSize = pCurDVR->GetRefRowSize();
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -804,7 +804,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -918,7 +918,7 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1080,7 +1080,7 @@ void XNPV::GenSlidingWindowFunction(
size_t nCurWindowSize = pCurDVR->GetRefRowSize();
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1186,7 +1186,7 @@ void PriceMat::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1297,7 +1297,7 @@ void OpSYD::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1397,7 +1397,7 @@ void MIRR::GenSlidingWindowFunction(
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1455,7 +1455,7 @@ void OpEffective::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1466,7 +1466,7 @@ void OpEffective::GenSlidingWindowFunction(std::stringstream& ss,
ss << " int gid0 = get_global_id(0);\n\t";
ss << " double arg0 = " << GetBottom() << ";\n";
ss << " double arg1 = " << GetBottom() << ";\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -1519,7 +1519,7 @@ void OpTbilleq::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1597,7 +1597,7 @@ void OpCumprinc::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1723,7 +1723,7 @@ void OpAccrint::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1837,7 +1837,7 @@ void OpAccrintm::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1964,7 +1964,7 @@ void OpYield::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2104,7 +2104,7 @@ void OpSLN::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2180,7 +2180,7 @@ void OpYieldmat::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2303,7 +2303,7 @@ void OpPMT::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2367,7 +2367,7 @@ void OpNPV::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2497,7 +2497,7 @@ void OpPrice::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2573,7 +2573,7 @@ void OpOddlprice::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2672,7 +2672,7 @@ void OpOddlyield::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2775,7 +2775,7 @@ void OpPriceDisc::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2837,7 +2837,7 @@ void OpNper::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -2912,7 +2912,7 @@ void OpPPMT::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -3018,7 +3018,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3109,7 +3109,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3195,7 +3195,7 @@ void OpCouppcd::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3282,7 +3282,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3382,7 +3382,7 @@ void OpCoupdaysnc::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3468,7 +3468,7 @@ void OpCoupnum::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3547,7 +3547,7 @@ void OpAmordegrc::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3695,7 +3695,7 @@ void OpAmorlinc::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3826,7 +3826,7 @@ void OpReceived::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3923,7 +3923,7 @@ void OpYielddisc::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4041,7 +4041,7 @@ void OpTbillprice::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4076,7 +4076,7 @@ void RATE::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4219,7 +4219,7 @@ void OpTbillyield::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4294,7 +4294,7 @@ void OpDDB::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4395,7 +4395,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4530,7 +4530,7 @@ void OpVDB::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4579,7 +4579,7 @@ void OpXirr::GenSlidingWindowFunction(std::stringstream &ss,
pCurDVR->GetRefRowSize() ;
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4691,7 +4691,7 @@ void OpDB::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
diff --git a/sc/source/core/opencl/op_logical.cxx b/sc/source/core/opencl/op_logical.cxx
index 405ddc6..a057cf0 100644
--- a/sc/source/core/opencl/op_logical.cxx
+++ b/sc/source/core/opencl/op_logical.cxx
@@ -26,7 +26,7 @@ void OpAnd::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -35,7 +35,7 @@ void OpAnd::GenSlidingWindowFunction(std::stringstream &ss,
ss << ") {\n";
ss << " int gid0 = get_global_id(0);\n";
ss << " double t = 1,tmp=0;\n";
- for(unsigned int j = 0; j< vSubArguments.size(); j++)
+ for(size_t j = 0; j< vSubArguments.size(); j++)
{
ss << " double tmp"<<j<<" = 1;\n";
FormulaToken *tmpCur0 = vSubArguments[j]->GetFormulaToken();
@@ -111,7 +111,7 @@ void OpOr::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -120,7 +120,7 @@ void OpOr::GenSlidingWindowFunction(std::stringstream &ss,
ss << ") {\n";
ss << " int gid0 = get_global_id(0);\n";
ss << " double t = 0,tmp=0;\n";
- for(unsigned int j = 0; j< vSubArguments.size(); j++)
+ for(size_t j = 0; j< vSubArguments.size(); j++)
{
ss << " double tmp"<<j<<" = 0;\n";
FormulaToken *tmpCur0 = vSubArguments[j]->GetFormulaToken();
@@ -190,7 +190,7 @@ void OpNot::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -227,7 +227,7 @@ void OpXor::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -237,7 +237,7 @@ void OpXor::GenSlidingWindowFunction(std::stringstream &ss,
ss << " int gid0 = get_global_id(0);\n";
ss << " int t = 0,tmp0 = 0;\n";
ss << " double tmp = 0;\n";
- for(unsigned int j = 0; j< vSubArguments.size(); j++)
+ for(size_t j = 0; j< vSubArguments.size(); j++)
{
FormulaToken *tmpCur0 = vSubArguments[j]->GetFormulaToken();
if(tmpCur0->GetType() == formula::svSingleVectorRef)
@@ -306,7 +306,7 @@ void OpIf::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx
index 221474d..b6525f2 100644
--- a/sc/source/core/opencl/op_math.cxx
+++ b/sc/source/core/opencl/op_math.cxx
@@ -28,7 +28,7 @@ void OpCos::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -79,7 +79,7 @@ void OpSec::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -110,7 +110,7 @@ void OpSecH::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -132,7 +132,7 @@ void OpMROUND::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ", ";
@@ -193,7 +193,7 @@ void OpCosh::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -217,7 +217,7 @@ void OpCot::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -278,7 +278,7 @@ void OpCoth::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -309,7 +309,7 @@ void OpCombinA::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -319,7 +319,7 @@ void OpCombinA::GenSlidingWindowFunction(std::stringstream &ss,
ss << " int gid0 = get_global_id(0);\n";
ss << " double tem;\n";
ss << " double arg0,arg1;\n";
- for (unsigned int i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -366,7 +366,7 @@ void OpEven::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -397,7 +397,7 @@ void OpMod::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -431,7 +431,7 @@ void OpLog::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -441,7 +441,7 @@ void OpLog::GenSlidingWindowFunction(std::stringstream &ss,
ss << " int gid0 = get_global_id(0);\n";
ss << " double tem;\n";
ss << " double arg0,arg1;\n";
- for (unsigned int i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -482,7 +482,7 @@ void OpCsc::GenSlidingWindowFunction(
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -511,7 +511,7 @@ void OpCountIfs::GenSlidingWindowFunction(std::stringstream &ss,
pCurDVR->GetRefRowSize() ;
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -528,7 +528,7 @@ void OpCountIfs::GenSlidingWindowFunction(std::stringstream &ss,
std::stringstream tmpss;
- for(unsigned j=0;j<vSubArguments.size();j+=2,m++)
+ for(size_t j=0;j<vSubArguments.size();j+=2,m++)
{
CheckSubArgumentIsNan(tmpss,vSubArguments,j);
CheckSubArgumentIsNan(ss,vSubArguments,j+1);
@@ -541,7 +541,7 @@ void OpCountIfs::GenSlidingWindowFunction(std::stringstream &ss,
tmpss << ")){\n";
}
tmpss << " tmp ++;\n";
- for(unsigned j=0;j<vSubArguments.size();j+=2,m--)
+ for(size_t j=0;j<vSubArguments.size();j+=2,m--)
{
for(int n = 0;n<m+1;n++)
{
@@ -572,7 +572,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
ss << "__kernel void ";
ss << vSubArguments[0]->GetName();
ss << "_SumIfs_reduction( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -608,7 +608,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
int mm=0;
std::string p1 = "p1";
std::string p2 = "p2";
- for(unsigned j=1;j<vSubArguments.size();j+=2,mm++)
+ for(size_t j=1;j<vSubArguments.size();j+=2,mm++)
{
CheckSubArgumentIsNan2(ss,vSubArguments,j,p1);
CheckSubArgumentIsNan2(ss,vSubArguments,j+1,p1);
@@ -624,7 +624,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
}
CheckSubArgumentIsNan2(ss,vSubArguments,0,p1);
ss << " tmp += tmp0;\n";
- for(unsigned j=1;j<vSubArguments.size();j+=2,mm--)
+ for(size_t j=1;j<vSubArguments.size();j+=2,mm--)
{
for(int n = 0;n<mm+1;n++)
{
@@ -633,7 +633,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
ss<< "}\n\n";
}
mm=0;
- for(unsigned j=1;j<vSubArguments.size();j+=2,mm++)
+ for(size_t j=1;j<vSubArguments.size();j+=2,mm++)
{
CheckSubArgumentIsNan2(ss,vSubArguments,j,p2);
CheckSubArgumentIsNan2(ss,vSubArguments,j+1,p2);
@@ -647,7 +647,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
}
CheckSubArgumentIsNan2(ss,vSubArguments,0,p2);
ss << " tmp += tmp0;\n";
- for(unsigned j=1;j< vSubArguments.size();j+=2,mm--)
+ for(size_t j=1;j< vSubArguments.size();j+=2,mm--)
{
for(int n = 0;n<mm+1;n++)
{
@@ -659,7 +659,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
ss << " else if (p1 < min(arrayLength, offset + windowSize)) {\n";
mm=0;
- for(unsigned j=1;j<vSubArguments.size();j+=2,mm++)
+ for(size_t j=1;j<vSubArguments.size();j+=2,mm++)
{
CheckSubArgumentIsNan2(ss,vSubArguments,j,p1);
CheckSubArgumentIsNan2(ss,vSubArguments,j+1,p1);
@@ -674,7 +674,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
}
CheckSubArgumentIsNan2(ss,vSubArguments,0,p1);
ss << " tmp += tmp0;\n";
- for(unsigned j=1;j<vSubArguments.size();j+=2,mm--)
+ for(size_t j=1;j<vSubArguments.size();j+=2,mm--)
{
for(int n = 0;n<mm+1;n++)
{
@@ -703,7 +703,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
// generate functions as usual
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -734,7 +734,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
}
ss<< " int singleIndex =gid0;\n";
int m=0;
- for(unsigned j=1;j<vSubArguments.size();j+=2,m++)
+ for(size_t j=1;j<vSubArguments.size();j+=2,m++)
{
CheckSubArgumentIsNan(ss,vSubArguments,j);
CheckSubArgumentIsNan(ss,vSubArguments,j+1);
@@ -748,7 +748,7 @@ void OpSumIfs::GenSlidingWindowFunction(std::stringstream &ss,
}
CheckSubArgumentIsNan(ss,vSubArguments,0);
ss << " tmp += tmp0;\n";
- for(unsigned j=1;j<=vSubArguments.size();j+=2,m--)
+ for(size_t j=1;j<=vSubArguments.size();j+=2,m--)
{
for(int n = 0;n<m+1;n++)
{
@@ -774,7 +774,7 @@ void OpCscH::GenSlidingWindowFunction(
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -797,7 +797,7 @@ void OpExp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -851,7 +851,7 @@ void OpAverageIfs::GenSlidingWindowFunction(std::stringstream &ss,
pCurDVR->GetRefRowSize() ;
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -866,7 +866,7 @@ void OpAverageIfs::GenSlidingWindowFunction(std::stringstream &ss,
ss<< " int singleIndex =gid0;\n";
int m=0;
std::stringstream tmpss;
- for(unsigned j=1;j<vSubArguments.size();j+=2,m++)
+ for(size_t j=1;j<vSubArguments.size();j+=2,m++)
{
CheckSubArgumentIsNan(tmpss,vSubArguments,j);
CheckSubArgumentIsNan(ss,vSubArguments,j+1);
@@ -881,7 +881,7 @@ void OpAverageIfs::GenSlidingWindowFunction(std::stringstream &ss,
CheckSubArgumentIsNan(tmpss,vSubArguments,0);
tmpss << " tmp += tmp0;\n";
tmpss << " count++;\n";
- for(unsigned j=1;j<vSubArguments.size();j+=2,m--)
+ for(size_t j=1;j<vSubArguments.size();j+=2,m--)
{
for(int n = 0;n<m+1;n++)
{
@@ -908,7 +908,7 @@ void OpLog10::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -932,7 +932,7 @@ void OpSinh::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -954,7 +954,7 @@ void OpSin::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1003,7 +1003,7 @@ void OpAbs::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1039,7 +1039,7 @@ void OpArcCos::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1065,7 +1065,7 @@ void OpArcCosHyp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1108,7 +1108,7 @@ void OpTan::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1159,7 +1159,7 @@ void OpTanH::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1183,7 +1183,7 @@ void OpPower::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1193,7 +1193,7 @@ void OpPower::GenSlidingWindowFunction(std::stringstream &ss,
ss << "{\n";
ss << " int gid0=get_global_id(0);\n";
ss << " double arg[2];\n";
- for( unsigned i=0; i < vSubArguments.size(); ++i)
+ for( size_t i=0; i < vSubArguments.size(); ++i)
{
FormulaToken *tmpCur = vSubArguments[i]->GetFormulaToken();
assert(tmpCur);
@@ -1251,7 +1251,7 @@ void OpSqrt::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1300,7 +1300,7 @@ void OpArcCot::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1325,7 +1325,7 @@ void OpArcCotHyp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1379,7 +1379,7 @@ void OpArcSin::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1404,7 +1404,7 @@ void OpArcSinHyp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1452,7 +1452,7 @@ void OpArcTan2::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1487,7 +1487,7 @@ void OpArcTan::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1534,7 +1534,7 @@ void OpArcTanH::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1561,7 +1561,7 @@ void OpBitAnd::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -1596,7 +1596,7 @@ void OpLn::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1619,7 +1619,7 @@ void OpRound::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1649,7 +1649,7 @@ void OpRoundUp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1687,7 +1687,7 @@ void OpRoundDown::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1720,7 +1720,7 @@ void OpInt::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1743,7 +1743,7 @@ void OpNegSub::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1763,7 +1763,7 @@ void OpRadians::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1784,7 +1784,7 @@ void OpIsEven::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1805,7 +1805,7 @@ void OpIsOdd::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1831,7 +1831,7 @@ void OpOdd::GenSlidingWindowFunction(
ss << Math_Intg_Str;
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1970,7 +1970,7 @@ void OpSumIf::GenSlidingWindowFunction(std::stringstream &ss,
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
int flag = 3 == vSubArguments.size() ? 2 : 0;
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2089,7 +2089,7 @@ void OpTrunc::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2099,7 +2099,7 @@ void OpTrunc::GenSlidingWindowFunction(std::stringstream &ss,
ss << "{\n";
ss << " int gid0=get_global_id(0);\n";
ss << " double arg[2];\n";
- for( unsigned i=0; i < vSubArguments.size(); ++i)
+ for( size_t i=0; i < vSubArguments.size(); ++i)
{
FormulaToken *tmpCur = vSubArguments[i]->GetFormulaToken();
assert(tmpCur);
@@ -2167,7 +2167,7 @@ void OpFloor::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2202,7 +2202,7 @@ void OpBitOr::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -2239,7 +2239,7 @@ void OpBitXor::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -2277,7 +2277,7 @@ void OpBitLshift::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -2317,7 +2317,7 @@ void OpBitRshift::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -2359,7 +2359,7 @@ void OpSumSQ::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); ++i)
+ for (size_t i = 0; i < vSubArguments.size(); ++i)
{
if (i)
ss << ",";
@@ -2369,7 +2369,7 @@ void OpSumSQ::GenSlidingWindowFunction(std::stringstream &ss,
ss << "{\n";
ss << " int gid0=get_global_id(0);\n";
ss << " double sum = 0.0f, arg;\n";
- for( unsigned i=0; i < vSubArguments.size(); ++i)
+ for( size_t i=0; i < vSubArguments.size(); ++i)
{
FormulaToken *tmpCur = vSubArguments[i]->GetFormulaToken();
assert(tmpCur);
@@ -2449,7 +2449,7 @@ void OpSqrtPi::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2499,7 +2499,7 @@ void OpCeil::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -2558,7 +2558,7 @@ void OpCombin::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -2665,7 +2665,7 @@ void OpConvert::GenSlidingWindowFunction(
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2710,7 +2710,7 @@ void OpProduct::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2720,7 +2720,7 @@ void OpProduct::GenSlidingWindowFunction(std::stringstream &ss,
ss << " int gid0 = get_global_id(0);\n";
ss << " int i = 0;\n";
ss << " double product=1.0;\n\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -2783,7 +2783,7 @@ void OpAverageIf::GenSlidingWindowFunction(std::stringstream &ss,
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -2940,7 +2940,7 @@ void OpDeg::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2990,7 +2990,7 @@ void OpFact::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3052,7 +3052,7 @@ void OpQuotient::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i) ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
@@ -3080,7 +3080,7 @@ void OpSeriesSum::GenSlidingWindowFunction(std::stringstream &ss,
if( vSubArguments.size() != 4){return;}
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
diff --git a/sc/source/core/opencl/op_spreadsheet.cxx b/sc/source/core/opencl/op_spreadsheet.cxx
index d9809ef..3b06460 100644
--- a/sc/source/core/opencl/op_spreadsheet.cxx
+++ b/sc/source/core/opencl/op_spreadsheet.cxx
@@ -27,7 +27,7 @@ void OpVLookup::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
diff --git a/sc/source/core/opencl/op_statistical.cxx b/sc/source/core/opencl/op_statistical.cxx
index 6e38f84..fcfb774 100644
--- a/sc/source/core/opencl/op_statistical.cxx
+++ b/sc/source/core/opencl/op_statistical.cxx
@@ -27,7 +27,7 @@ void OpVar::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -214,7 +214,7 @@ void OpZTest::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -474,7 +474,7 @@ void OpTTest::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -799,7 +799,7 @@ void OpVarP::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -997,7 +997,7 @@ void OpTDist::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1131,7 +1131,7 @@ void OpExponDist::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1221,7 +1221,7 @@ void OpFdist::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1285,7 +1285,7 @@ void OpStandard::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1410,7 +1410,7 @@ void OpWeibull::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1572,7 +1572,7 @@ void OpSkew::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -1829,7 +1829,7 @@ void OpSkewp::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2114,7 +2114,7 @@ void OpTInv::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2212,7 +2212,7 @@ void OpStDev::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2386,7 +2386,7 @@ void OpStDevP::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2562,7 +2562,7 @@ void OpSlope::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2722,9 +2722,9 @@ void OpSTEYX::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
- if (i)
+ if (i)
ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
}
@@ -2880,7 +2880,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2934,7 +2934,7 @@ void OpFisherInv::GenSlidingWindowFunction(
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2958,7 +2958,7 @@ void OpGamma::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -2992,7 +2992,7 @@ void OpCorrel::GenSlidingWindowFunction(
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3175,7 +3175,7 @@ void OpNegbinomdist::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3256,7 +3256,7 @@ void OpPearson::GenSlidingWindowFunction(
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3337,7 +3337,7 @@ void OpGammaLn::GenSlidingWindowFunction(
formula::SingleVectorRefToken *>(tmpCur);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3370,7 +3370,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3419,7 +3419,7 @@ void OpGeoMean::GenSlidingWindowFunction(
{
ss << "__kernel void ";
ss << "GeoMean_reduction( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3443,7 +3443,7 @@ void OpGeoMean::GenSlidingWindowFunction(
ss << " int offset;\n";
ss << " barrier(CLK_LOCAL_MEM_FENCE);\n";
- for(unsigned i=0;i<vSubArguments.size();i++)
+ for(size_t i=0;i<vSubArguments.size();i++)
{
assert(vSubArguments[i]->GetFormulaToken());
@@ -3564,7 +3564,7 @@ void OpGeoMean::GenSlidingWindowFunction(
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3587,7 +3587,7 @@ vSubArguments)
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3600,7 +3600,7 @@ vSubArguments)
ss << " double tmp = 0;\n";
ss << " int length;\n";
ss << " int totallength=0;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -3670,7 +3670,7 @@ void OpConfidence::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3745,7 +3745,7 @@ void OpCritBinom::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3861,7 +3861,7 @@ void OpRsq::GenSlidingWindowFunction(
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -3957,7 +3957,7 @@ void OpChiInv::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4041,7 +4041,7 @@ void OpNormdist::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4119,7 +4119,7 @@ void OpNormsdist::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4177,7 +4177,7 @@ void OpPermut::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4242,7 +4242,7 @@ void OpPermutationA::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4291,7 +4291,7 @@ void OpPhi::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4349,7 +4349,7 @@ void OpNorminv::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4564,7 +4564,7 @@ void OpNormsinv:: GenSlidingWindowFunction
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4776,7 +4776,7 @@ void OpMedian::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4789,7 +4789,7 @@ void OpMedian::GenSlidingWindowFunction(
ss << " unsigned int startFlag = 0;\n";
ss << " unsigned int endFlag = 0;\n";
ss << " double dataIna;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -4840,7 +4840,7 @@ void OpKurt:: GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -4854,7 +4854,7 @@ void OpKurt:: GenSlidingWindowFunction(std::stringstream &ss,
ss << " double length;\n";
ss << " double totallength=0;\n";
ss << " double tmp = 0;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -4907,7 +4907,7 @@ void OpKurt:: GenSlidingWindowFunction(std::stringstream &ss,
}
}
ss << " double fMean = fSum * pow(totallength,-1);\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -4952,7 +4952,7 @@ void OpKurt:: GenSlidingWindowFunction(std::stringstream &ss,
ss << " double fStdDev = sqrt(vSum / (totallength - 1.0));\n";
ss << " double dx = 0.0;\n";
ss << " double xpower4 = 0.0;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);
@@ -5012,7 +5012,7 @@ void OpIntercept::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -5173,7 +5173,7 @@ void OpLogInv:: GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -5421,7 +5421,7 @@ void OpForecast::GenSlidingWindowFunction(std::stringstream &ss,
size_t nCurWindowSize1 = pCurDVR2->GetRefRowSize();
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -5531,7 +5531,7 @@ void OpLogNormDist::GenSlidingWindowFunction(std::stringstream &ss,
formula::SingleVectorRefToken *>(tmpCur3);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -5645,7 +5645,7 @@ void OpGammaDist::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -5740,7 +5740,7 @@ void OpChiDist::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -5850,7 +5850,7 @@ void OpBinomdist::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6005,7 +6005,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6097,7 +6097,7 @@ vSubArguments)
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6181,7 +6181,7 @@ void OpGammaInv::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6374,7 +6374,7 @@ void OpFInv::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6569,7 +6569,7 @@ void OpFTest::GenSlidingWindowFunction(std::stringstream &ss,
size_t nCurWindowSize1 = pCurDVR1->GetRefRowSize();
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"( ";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6586,7 +6586,7 @@ void OpFTest::GenSlidingWindowFunction(std::stringstream &ss,
ss << " int length1= "<<nCurWindowSize1;
ss << ";\n";
ss << " double tmp = 0;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCurSub = vSubArguments[i]->GetFormulaToken();
assert(pCurSub);
@@ -6659,7 +6659,7 @@ void OpB::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6815,7 +6815,7 @@ void OpPoisson::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -6930,7 +6930,7 @@ void OpCovar::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -7142,7 +7142,7 @@ void OpCovar::GenSlidingWindowFunction(std::stringstream& ss,
}
else {
ss << " int cnt0 = 0,cnt1 = 0;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
if (pCur->GetType() == formula::svSingleVectorRef){
@@ -7175,7 +7175,7 @@ void OpCovar::GenSlidingWindowFunction(std::stringstream& ss,
}
ss << " vMean0 = vSum0 / cnt0;\n";
ss << " vMean1 = vSum0 / cnt1;\n";
- for(unsigned i = 0; i < vSubArguments.size(); i++ ) {
+ for(size_t i = 0; i < vSubArguments.size(); i++ ) {
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
if (pCur->GetType() == formula::svSingleVectorRef) {
const formula::SingleVectorRefToken* pTVR =
@@ -7209,7 +7209,7 @@ void OpBetaDist::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -7342,7 +7342,7 @@ void OpBetainv::GenSlidingWindowFunction(
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -7434,7 +7434,7 @@ void OpDevSq::GenSlidingWindowFunction(std::stringstream& ss,
{
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -7445,7 +7445,7 @@ void OpDevSq::GenSlidingWindowFunction(std::stringstream& ss,
ss << " double vSum = 0.0;\n";
ss << " double vMean = 0.0;\n";
ss << " int cnt = 0;\n";
- for(unsigned i = 0; i < vSubArguments.size(); i++ )
+ for(size_t i = 0; i < vSubArguments.size(); i++ )
{
ss << " double arg" << i << " = 0.0;\n";
FormulaToken* pCur = vSubArguments[i]->GetFormulaToken();
@@ -7538,7 +7538,7 @@ void OpDevSq::GenSlidingWindowFunction(std::stringstream& ss,
}
ss << " vMean = vSum / cnt;\n";
ss << " vSum = 0.0;\n";
- for(unsigned k = 0; k < vSubArguments.size(); k++ )
+ for(size_t k = 0; k < vSubArguments.size(); k++ )
{
FormulaToken* pCur = vSubArguments[k]->GetFormulaToken();
if (pCur->GetType() == formula::svDoubleVectorRef)
diff --git a/sc/source/core/opencl/opbase.cxx b/sc/source/core/opencl/opbase.cxx
index b2a77a4..f1d7b21 100644
--- a/sc/source/core/opencl/opbase.cxx
+++ b/sc/source/core/opencl/opbase.cxx
@@ -189,7 +189,7 @@ void Normal::GenSlidingWindowFunction(
ArgVector argVector;
ss << "\ndouble " << sSymName;
ss << "_" << BinFuncName() << "(";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
if (i)
ss << ",";
@@ -209,7 +209,7 @@ void Normal::GenSlidingWindowFunction(
void CheckVariables::GenTmpVariables(
std::stringstream& ss, SubArguments& vSubArguments )
{
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
ss << " double tmp";
ss << i;
@@ -312,7 +312,7 @@ void CheckVariables::CheckAllSubArgumentIsNan(
std::stringstream& ss, SubArguments& vSubArguments )
{
ss << " int k = gid0;\n";
- for (unsigned i = 0; i < vSubArguments.size(); i++)
+ for (size_t i = 0; i < vSubArguments.size(); i++)
{
CheckSubArgumentIsNan(ss, vSubArguments, i);
}
diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx
index 1e0a5f5..5192f46 100644
--- a/sc/source/core/tool/formulaopt.cxx
+++ b/sc/source/core/tool/formulaopt.cxx
@@ -252,7 +252,7 @@ ScFormulaCfg::PropsToIds ScFormulaCfg::GetPropNamesToId()
};
OSL_ENSURE( SAL_N_ELEMENTS(aVals) == aPropNames.getLength(), "Properties and ids are out of Sync");
PropsToIds aPropIdMap;
- for ( sal_uInt16 i=0; i<aPropNames.getLength(); ++i )
+ for ( sal_Int32 i=0; i<aPropNames.getLength(); ++i )
aPropIdMap[aPropNames[i]] = aVals[ i ];
return aPropIdMap;
}
diff --git a/sc/source/filter/xml/XMLExportDDELinks.cxx b/sc/source/filter/xml/XMLExportDDELinks.cxx
index 1d61024b..afe8d47 100644
--- a/sc/source/filter/xml/XMLExportDDELinks.cxx
+++ b/sc/source/filter/xml/XMLExportDDELinks.cxx
@@ -129,7 +129,7 @@ void ScXMLExportDDELinks::WriteDDELinks(uno::Reference<sheet::XSpreadsheetDocume
if (nCount)
{
SvXMLElementExport aElemDDEs(rExport, XML_NAMESPACE_TABLE, XML_DDE_LINKS, true, true);
- for (sal_uInt16 nDDELink = 0; nDDELink < nCount; ++nDDELink)
+ for (sal_Int32 nDDELink = 0; nDDELink < nCount; ++nDDELink)
{
uno::Reference<sheet::XDDELink> xDDELink(xIndex->getByIndex(nDDELink), uno::UNO_QUERY);
if (xDDELink.is())
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx
index 8c87f9f..10231fb 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx
@@ -982,7 +982,7 @@ OUString* ScFormatRangeStyles::GetStyleNameByIndex(const sal_Int32 nIndex, const
void ScFormatRangeStyles::Sort()
{
sal_Int32 nTables = aTables.size();
- for (sal_Int16 i = 0; i < nTables; ++i)
+ for (sal_Int32 i = 0; i < nTables; ++i)
if (!aTables[i]->empty())
aTables[i]->sort();
}
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 3ddd5bf..3fb893f 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -491,7 +491,7 @@ sal_Int32 ScXMLExport::GetNumberFormatStyleIndex(sal_Int32 nNumFmt) const
return itr->second;
}
-void ScXMLExport::CollectSharedData(sal_Int32& nTableCount, sal_Int32& nShapesCount)
+void ScXMLExport::CollectSharedData(SCTAB& nTableCount, sal_Int32& nShapesCount)
{
if (!GetModel().is())
return;
@@ -579,7 +579,7 @@ void ScXMLExport::CollectSharedData(sal_Int32& nTableCount, sal_Int32& nShapesCo
}
}
-void ScXMLExport::CollectShapesAutoStyles(const sal_Int32 nTableCount)
+void ScXMLExport::CollectShapesAutoStyles(SCTAB nTableCount)
{
// #i84077# To avoid compiler warnings about uninitialized aShapeItr,
// it's initialized using this dummy list. The iterator contains shapes
@@ -653,14 +653,14 @@ void ScXMLExport::CollectShapesAutoStyles(const sal_Int32 nTableCount)
void ScXMLExport::_ExportMeta()
{
sal_Int32 nCellCount(pDoc ? pDoc->GetCellCount() : 0);
- sal_Int32 nTableCount(0);
+ SCTAB nTableCount(0);
sal_Int32 nShapesCount(0);
GetAutoStylePool()->ClearEntries();
CollectSharedData(nTableCount, nShapesCount);
uno::Sequence<beans::NamedValue> stats(3);
stats[0] = beans::NamedValue(OUString("TableCount"),
- uno::makeAny(nTableCount));
+ uno::makeAny((sal_Int32)nTableCount));
stats[1] = beans::NamedValue(OUString("CellCount"),
uno::makeAny(nCellCount));
stats[2] = beans::NamedValue(OUString("ObjectCount"),
@@ -1800,7 +1800,7 @@ void ScXMLExport::_ExportContent()
nCurrentTable = 0;
if (!pSharedData)
{
- sal_Int32 nTableCount(0);
+ SCTAB nTableCount(0);
sal_Int32 nShapesCount(0);
CollectSharedData(nTableCount, nShapesCount);
OSL_FAIL("no shared data setted");
@@ -1892,7 +1892,7 @@ void ScXMLExport::_ExportStyles( bool bUsed )
{
if (!pSharedData)
{
- sal_Int32 nTableCount(0);
+ SCTAB nTableCount(0);
sal_Int32 nShapesCount(0);
CollectSharedData(nTableCount, nShapesCount);
}
@@ -2455,7 +2455,7 @@ void ScXMLExport::_ExportAutoStyles()
if (!pSharedData)
{
- sal_Int32 nTableCount(0);
+ SCTAB nTableCount(0);
sal_Int32 nShapesCount(0);
CollectSharedData(nTableCount, nShapesCount);
}
diff --git a/sc/source/filter/xml/xmlexprt.hxx b/sc/source/filter/xml/xmlexprt.hxx
index e4630b4..32ce760 100644
--- a/sc/source/filter/xml/xmlexprt.hxx
+++ b/sc/source/filter/xml/xmlexprt.hxx
@@ -133,8 +133,8 @@ class ScXMLExport : public SvXMLExport
bool mbShowProgress;
sal_Int32 GetNumberFormatStyleIndex(sal_Int32 nNumFmt) const;
- void CollectSharedData(sal_Int32& nTableCount, sal_Int32& nShapesCount);
- void CollectShapesAutoStyles(const sal_Int32 nTableCount);
+ void CollectSharedData(SCTAB& nTableCount, sal_Int32& nShapesCount);
+ void CollectShapesAutoStyles(SCTAB nTableCount);
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list