diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-06-16 14:09:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-16 15:26:14 +0200 |
commit | 3d2e26d8b7a99d0a622741ef4327e8cbc93bbe02 (patch) | |
tree | c352c49a99884d38296ce05312e4152295e38b99 /sc/source/core/data/column3.cxx | |
parent | 1ac3b4ae83856eebe6bc329b7a92575b6b1d84be (diff) |
make meType in ScCellValue private
as a first step to wrapping up the internals of this class and adding
some asserts
Change-Id: Ic13ddd917948dbf3fd6d73f44b8efcc727726baf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135994
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r-- | sc/source/core/data/column3.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 786fc2387139..8511c5bed016 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -2115,7 +2115,7 @@ bool ScColumn::ParseString( if (bForceFormatDate) { ScRefCellValue aCell = GetCellValue(nRow); - if (aCell.meType == CELLTYPE_VALUE) + if (aCell.getType() == CELLTYPE_VALUE) { // Only for an actual date (serial number), not an // arbitrary string or formula or empty cell. @@ -2225,7 +2225,7 @@ bool ScColumn::ParseString( } while (false); - if (rCell.meType == CELLTYPE_NONE) + if (rCell.getType() == CELLTYPE_NONE) { // If we reach here with ScSetStringParam::SpecialNumberOnly it // means a simple number was not detected above, so test for @@ -2554,7 +2554,7 @@ class FilterEntriesHandler double fVal = 0.0; - switch (rCell.meType) + switch (rCell.getType()) { case CELLTYPE_VALUE: fVal = rCell.mfValue; @@ -2879,7 +2879,7 @@ public: for (const Entry& r : maEntries) { - switch (r.maValue.meType) + switch (r.maValue.getType()) { case CELLTYPE_VALUE: rColumn.SetValue(aBlockPos, r.mnRow, r.maValue.mfValue, false); @@ -3029,7 +3029,7 @@ void ScColumn::SetValue( OUString ScColumn::GetString( const ScRefCellValue& aCell, SCROW nRow, const ScInterpreterContext* pContext ) const { // ugly hack for ordering problem with GetNumberFormat and missing inherited formats - if (aCell.meType == CELLTYPE_FORMULA) + if (aCell.getType() == CELLTYPE_FORMULA) aCell.mpFormula->MaybeInterpret(); sal_uInt32 nFormat = GetNumberFormat( pContext ? *pContext : GetDoc().GetNonThreadedContext(), nRow); @@ -3343,7 +3343,7 @@ class MaxNumStringLenHandler void processCell(size_t nRow, ScRefCellValue& rCell) { sal_uInt16 nCellPrecision = mnMaxGeneralPrecision; - if (rCell.meType == CELLTYPE_FORMULA) + if (rCell.getType() == CELLTYPE_FORMULA) { if (!rCell.mpFormula->IsValue()) return; |