Kaydet (Commit) e68487b7 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

calcGlueState(): move State enum to file-global anonymous namespace

so that it can be used in templates in strict C++98.
C++11 allows local types (i.e. without linkage) to be used in templates.
üst e53cf6c2
......@@ -599,6 +599,8 @@ void Chart2Positioner::glueState()
calcGlueState(nC, nR);
}
enum State { Hole = 0, Occupied = 1, Free = 2, Glue = 3 };
void Chart2Positioner::calcGlueState(SCCOL nColSize, SCROW nRowSize)
{
// TODO: This code can use some space optimization. Using an array to
......@@ -607,8 +609,6 @@ void Chart2Positioner::calcGlueState(SCCOL nColSize, SCROW nRowSize)
sal_uInt32 nCR = static_cast<sal_uInt32>(nColSize*nRowSize);
enum State { Hole = 0, Occupied = 1, Free = 2, Glue = 3 };
vector<State> aCellStates(nCR, Hole);
// Mark all referenced cells "occupied".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment