summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2021-02-07 20:59:14 +0100
committerJulien Nabet <serval2412@yahoo.fr>2021-02-08 21:05:05 +0100
commit0b1b167c3f7fa802532373699589104fe4b391c7 (patch)
treeab54695dd7cdcdc0d0a77af4ebbbddf26c34942c /sc/source/core
parent57cc7797dd95ff34e84b8f91d5102116abe9d0b3 (diff)
Remove unneeded breaks
Extending this: https://gerrit.libreoffice.org/c/core/+/110512 Change-Id: I1c5bfcddeb0f5619dc848bbf02408cf166bebc8e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110521 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/attrib.cxx3
-rw-r--r--sc/source/core/data/column2.cxx3
-rw-r--r--sc/source/core/data/column3.cxx1
-rw-r--r--sc/source/core/data/dpcache.cxx3
-rw-r--r--sc/source/core/data/formulacell.cxx1
-rw-r--r--sc/source/core/data/global.cxx1
-rw-r--r--sc/source/core/data/mtvelements.cxx1
7 files changed, 0 insertions, 13 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index cb39fec0b2f0..1ae01ef1c26f 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -539,7 +539,6 @@ bool ScViewObjectModeItem::GetPresentation
else
rText += ScResId(STR_VOBJ_MODE_HIDE);
return true;
- break;
default: break;
// added to avoid warnings
@@ -620,12 +619,10 @@ bool ScPageScaleToItem::GetPresentation(
case SfxItemPresentation::Nameless:
rText = aValue;
return true;
- break;
case SfxItemPresentation::Complete:
rText = aName + " (" + aValue + ")";
return true;
- break;
default:
OSL_FAIL( "ScPageScaleToItem::GetPresentation - unknown presentation mode" );
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 22d5a16de895..d194ab134dd1 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -3523,18 +3523,15 @@ public:
case sc::element_type_numeric:
case sc::element_type_string:
return node.size;
- break;
case sc::element_type_formula:
{
// Each formula cell is worth its code length plus 5.
return std::accumulate(sc::formula_block::begin(*node.data), sc::formula_block::end(*node.data), size_t(0),
[](const size_t& rCount, const ScFormulaCell* p) { return rCount + 5 + p->GetCode()->GetCodeLen(); });
}
- break;
case sc::element_type_edittext:
// each edit-text cell is worth 50.
return node.size * 50;
- break;
default:
return 0;
}
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index f1a621a985b5..14d1ebdc09c4 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -837,7 +837,6 @@ public:
deleteNumeric(node, nOffset, nDataSize);
return;
- break;
case sc::element_type_string:
case sc::element_type_edittext:
if (!mbString)
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index d16ceb957c61..a9fe44f3f4e7 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -1175,13 +1175,10 @@ sal_uInt32 ScDPCache::GetLocaleIndependentFormat( SvNumberFormatter& rFormatter,
{
case SvNumFormatType::DATE:
return rFormatter.GetFormatIndex( NF_DATE_ISO_YYYYMMDD, LANGUAGE_ENGLISH_US);
- break;
case SvNumFormatType::TIME:
return rFormatter.GetFormatIndex( NF_TIME_HHMMSS, LANGUAGE_ENGLISH_US);
- break;
case SvNumFormatType::DATETIME:
return rFormatter.GetFormatIndex( NF_DATETIME_ISO_YYYYMMDD_HHMMSS, LANGUAGE_ENGLISH_US);
- break;
default:
return rFormatter.GetFormatIndex( NF_NUMBER_STANDARD, LANGUAGE_ENGLISH_US);
}
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 707acf1d355c..cad18eb8022a 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3576,7 +3576,6 @@ bool ScFormulaCell::UpdateReference(
{
case URM_INSDEL:
return UpdatePosOnShift(rCxt);
- break;
default:
;
}
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 3a87e3a95577..458e81da5188 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -417,7 +417,6 @@ OUString ScGlobal::GetLongErrorString(FormulaError nErr)
break;
default:
return ScResId(STR_ERROR_STR) + OUString::number( static_cast<int>(nErr) );
- break;
}
return ScResId(pErrNumber);
}
diff --git a/sc/source/core/data/mtvelements.cxx b/sc/source/core/data/mtvelements.cxx
index 56c0fbab0d9a..792b4e9d60e6 100644
--- a/sc/source/core/data/mtvelements.cxx
+++ b/sc/source/core/data/mtvelements.cxx
@@ -168,7 +168,6 @@ ScRefCellValue toRefCell( const sc::CellStoreType::const_iterator& itPos, size_t
case sc::element_type_edittext:
// Edit cell
return ScRefCellValue(sc::edittext_block::at(*itPos->data, nOffset));
- break;
case sc::element_type_formula:
// Formula cell
return ScRefCellValue(sc::formula_block::at(*itPos->data, nOffset));