diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-23 14:29:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-26 08:29:38 +0200 |
commit | 8cde91ecce5664d1e58970d1ecd57817e63f34ec (patch) | |
tree | e955efd2dbbb66acbe01a3cd3077b7547111f386 /sc/source/core | |
parent | 58a24575eb96a045cd8cacd2c96ab64aee992c0e (diff) |
convert BREAK constants to typed_flags_set
Change-Id: I33edff5feca07ed891df4c6c4dbc470748c4f4b4
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/document.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index adcf0c93ffc5..48e762c49e5f 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -4298,30 +4298,30 @@ void ScDocument::GetAllColBreaks(set<SCCOL>& rBreaks, SCTAB nTab, bool bPage, bo ScBreakType ScDocument::HasRowBreak(SCROW nRow, SCTAB nTab) const { - ScBreakType nType = BREAK_NONE; + ScBreakType nType = ScBreakType::NONE; if (!ValidTab(nTab) || nTab >= static_cast<SCTAB>(maTabs.size()) || !maTabs[nTab] || !ValidRow(nRow)) return nType; if (maTabs[nTab]->HasRowPageBreak(nRow)) - nType |= BREAK_PAGE; + nType |= ScBreakType::Page; if (maTabs[nTab]->HasRowManualBreak(nRow)) - nType |= BREAK_MANUAL; + nType |= ScBreakType::Manual; return nType; } ScBreakType ScDocument::HasColBreak(SCCOL nCol, SCTAB nTab) const { - ScBreakType nType = BREAK_NONE; + ScBreakType nType = ScBreakType::NONE; if (!ValidTab(nTab) || nTab >= static_cast<SCTAB>(maTabs.size()) || !maTabs[nTab] || !ValidCol(nCol)) return nType; if (maTabs[nTab]->HasColPageBreak(nCol)) - nType |= BREAK_PAGE; + nType |= ScBreakType::Page; if (maTabs[nTab]->HasColManualBreak(nCol)) - nType |= BREAK_MANUAL; + nType |= ScBreakType::Manual; return nType; } |