path: root/sc/qa/unit/ucalc.cxx
diff options
authorJochen Nitschke <>2016-03-09 15:23:11 +0100
committerEike Rathke <>2016-03-12 00:21:29 +0000
commit51d0b4037b36a4a74c9181b95edb18017542ab79 (patch)
treec13c5ac4782888e1640ee60911d68329018dcc05 /sc/qa/unit/ucalc.cxx
parentdc519b6dea7653e4b68b45aa664e3c0b5189d682 (diff)
tdf#84938 Change defines to typed_flags
Put defines into an enum class and use typed_flags template from o3tl to give them flag operators. There were some shift operations to apply flags from start references to end references, these went into a helper in address.hxx to hide them. A marco with shift operations in address.cxx was rewritten in two helpers without shifts. One shift remained in ScRange::Format with a comment. The other flag untypical operator was a minus 1 in a helper for ScRefFinder::ToggleRel, which iteratates through all possible combinations for absolute references. This is used to make referecnces absolute via SHIFT+F4. A replacement would be too complex. Change-Id: I4850f1623e01e56c60ac2260b95fc5cad8b6fd71 Signed-off-by: Jochen Nitschke <> Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Eike Rathke <> Tested-by: Eike Rathke <>
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 37181312cc46..c78f321878c0 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -3543,7 +3543,7 @@ void Test::testCopyPasteSkipEmpty()
bool checkRange( const ScAddress& rPos, const Check* p, const Check* pEnd )
ScAddress aPos(rPos);
- OUString aPosStr = aPos.Format(SCA_VALID);
+ OUString aPosStr = aPos.Format(ScRefFlags::VALID);
for (; p != pEnd; ++p, aPos.IncRow())
if (!mpDoc->GetString(aPos).equalsAscii(p->mpStr))