summaryrefslogtreecommitdiff
path: root/oox
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 /oox
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 'oox')
-rw-r--r--oox/source/drawingml/graphicshapecontext.cxx1
-rw-r--r--oox/source/drawingml/linepropertiescontext.cxx1
-rw-r--r--oox/source/drawingml/shapecontext.cxx1
-rw-r--r--oox/source/drawingml/shapepropertiescontext.cxx2
-rw-r--r--oox/source/drawingml/textbodycontext.cxx2
-rw-r--r--oox/source/vml/vmltextboxcontext.cxx2
6 files changed, 0 insertions, 9 deletions
diff --git a/oox/source/drawingml/graphicshapecontext.cxx b/oox/source/drawingml/graphicshapecontext.cxx
index eaf650c051ba..113e5490c51d 100644
--- a/oox/source/drawingml/graphicshapecontext.cxx
+++ b/oox/source/drawingml/graphicshapecontext.cxx
@@ -228,7 +228,6 @@ ContextHandlerRef OleObjectGraphicDataContext::onCreateContext( sal_Int32 nEleme
break;
case PPT_TOKEN( pic ):
return new GraphicShapeContext( *this, mpMasterShapePtr, mpShapePtr );
- break;
}
SAL_WARN("oox", "OleObjectGraphicDataContext::onCreateContext: unhandled element: "
<< getBaseToken(nElement));
diff --git a/oox/source/drawingml/linepropertiescontext.cxx b/oox/source/drawingml/linepropertiescontext.cxx
index dd9af49bf2db..322f98aad609 100644
--- a/oox/source/drawingml/linepropertiescontext.cxx
+++ b/oox/source/drawingml/linepropertiescontext.cxx
@@ -64,7 +64,6 @@ ContextHandlerRef LinePropertiesContext::onCreateContext( sal_Int32 nElement, co
break;
case A_TOKEN( custDash ): // CT_DashStopList
return this;
- break;
case A_TOKEN( ds ):
{
// 'a:ds' has 2 attributes : 'd' and 'sp'
diff --git a/oox/source/drawingml/shapecontext.cxx b/oox/source/drawingml/shapecontext.cxx
index 8d76755855c9..e0cbf9343c1d 100644
--- a/oox/source/drawingml/shapecontext.cxx
+++ b/oox/source/drawingml/shapecontext.cxx
@@ -110,7 +110,6 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 aElementToken, const
if (!mpShapePtr->getTextBody())
mpShapePtr->setTextBody( std::make_shared<TextBody>() );
return new TextBodyPropertiesContext( *this, rAttribs, mpShapePtr );
- break;
case XML_txbx:
break;
case XML_cNvPicPr:
diff --git a/oox/source/drawingml/shapepropertiescontext.cxx b/oox/source/drawingml/shapepropertiescontext.cxx
index 574e0793c89a..e0fc3274c731 100644
--- a/oox/source/drawingml/shapepropertiescontext.cxx
+++ b/oox/source/drawingml/shapepropertiescontext.cxx
@@ -95,12 +95,10 @@ ContextHandlerRef ShapePropertiesContext::onCreateContext( sal_Int32 aElementTok
// todo not supported by core, only for preservation via grab bags
case A_TOKEN( scene3d ): // CT_Scene3D
return new Scene3DPropertiesContext( *this, mrShape.get3DProperties() );
- break;
// todo not supported by core, only for preservation via grab bags
case A_TOKEN( sp3d ): // CT_Shape3D
return new Shape3DPropertiesContext( *this, rAttribs, mrShape.get3DProperties() );
- break;
}
return FillPropertiesContext::createFillContext( *this, aElementToken, rAttribs, mrShape.getFillProperties() );
diff --git a/oox/source/drawingml/textbodycontext.cxx b/oox/source/drawingml/textbodycontext.cxx
index f4c33f7253e0..49b50309f597 100644
--- a/oox/source/drawingml/textbodycontext.cxx
+++ b/oox/source/drawingml/textbodycontext.cxx
@@ -99,10 +99,8 @@ ContextHandlerRef TextParagraphContext::onCreateContext( sal_Int32 aElementToken
break;
case W_TOKEN( ins ):
return this;
- break;
case OOX_TOKEN(a14, m):
return CreateLazyMathBufferingContext(*this, mrParagraph);
- break;
default:
SAL_WARN("oox", "TextParagraphContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
}
diff --git a/oox/source/vml/vmltextboxcontext.cxx b/oox/source/vml/vmltextboxcontext.cxx
index d878c6dcdf3d..2cf5ebfaf40d 100644
--- a/oox/source/vml/vmltextboxcontext.cxx
+++ b/oox/source/vml/vmltextboxcontext.cxx
@@ -249,11 +249,9 @@ ContextHandlerRef TextBoxContext::onCreateContext( sal_Int32 nElement, const Att
return new TextPortionContext( *this, mrTextBox, maParagraph, TextFontModel(), nElement, rAttribs );
else
return this;
- break;
case W_TOKEN(pPr):
case W_TOKEN(sdt):
return this;
- break;
default:
SAL_INFO("oox", "unhandled 0x" << std::hex << getCurrentElement());
break;