diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-12-06 08:24:34 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-12-06 08:25:05 +0100 |
commit | e68487b719a1690150d88b251fb3e0b9f0ff4e09 (patch) | |
tree | 46d25c73cab8df4d1957b6c8b3819bd8c79fde23 /sc | |
parent | e53cf6c27fa1395983679ca2e81ead7f6fdb6e5d (diff) |
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.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 6e549964b27f..1847bb083c0c 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -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". |