diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 17:04:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 17:04:20 +0200 |
commit | 2ea7fe2522856167c5dc50a4f5b82805761a6977 (patch) | |
tree | b1c48998cd0768db1c8bd8f7d149240f8d95a1e9 /xmloff | |
parent | ddb4988c581cb891c6f55ef4435f6b625b7bfe2d (diff) |
Add SAL_FALLTHROUGH, where apparently appropriate
Change-Id: I646abf83b4dce8c92a3ba1c136d968bb9291dd83
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/nmspmap.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextListItemContext.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/transform/TransformerBase.cxx | 7 |
4 files changed, 10 insertions, 0 deletions
diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx index 8392c2016008..d0fb65fdd05e 100644 --- a/xmloff/source/core/nmspmap.cxx +++ b/xmloff/source/core/nmspmap.cxx @@ -199,6 +199,7 @@ OUString SvXMLNamespaceMap::GetQNameByKey( sal_uInt16 nKey, case XML_NAMESPACE_UNKNOWN: // ...if it's a completely unknown namespace, assert and return the local name SAL_WARN("xmloff.core", "unknown namespace, probable missing xmlns: declaration"); + SAL_FALLTHROUGH; case XML_NAMESPACE_NONE: // ...if there isn't one, return the local name return rLocalName; diff --git a/xmloff/source/text/XMLTextListItemContext.cxx b/xmloff/source/text/XMLTextListItemContext.cxx index a255ecf88410..f448e73d3cbf 100644 --- a/xmloff/source/text/XMLTextListItemContext.cxx +++ b/xmloff/source/text/XMLTextListItemContext.cxx @@ -143,6 +143,7 @@ SvXMLImportContext *XMLTextListItemContext::CreateChildContext( { case XML_TOK_TEXT_H: bHeading = true; + SAL_FALLTHROUGH; case XML_TOK_TEXT_P: pContext = new XMLParaContext( GetImport(), nPrefix, rLocalName, diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 768ae88c2753..e35e6c316149 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2150,6 +2150,7 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext( { case XML_TOK_TEXT_H: bHeading = true; + SAL_FALLTHROUGH; case XML_TOK_TEXT_P: pContext = new XMLParaContext( rImport, nPrefix, rLocalName, diff --git a/xmloff/source/transform/TransformerBase.cxx b/xmloff/source/transform/TransformerBase.cxx index 6f22f9c64dd4..e7d955c414f2 100644 --- a/xmloff/source/transform/TransformerBase.cxx +++ b/xmloff/source/transform/TransformerBase.cxx @@ -548,6 +548,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList( break; case XML_ATACTION_RENAME_IN2INCH: bRename = true; + SAL_FALLTHROUGH; case XML_ATACTION_IN2INCH: { OUString aAttrValue( rAttrValue ); @@ -564,6 +565,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList( break; case XML_ATACTION_RENAME_INCH2IN: bRename = true; + SAL_FALLTHROUGH; case XML_ATACTION_INCH2IN: { OUString aAttrValue( rAttrValue ); @@ -611,6 +613,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList( break; case XML_ATACTION_RENAME_DECODE_STYLE_NAME_REF: bRename = true; + SAL_FALLTHROUGH; case XML_ATACTION_DECODE_STYLE_NAME: case XML_ATACTION_DECODE_STYLE_NAME_REF: { @@ -637,6 +640,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList( break; case XML_ATACTION_RENAME_ENCODE_STYLE_NAME_REF: bRename = true; + SAL_FALLTHROUGH; case XML_ATACTION_ENCODE_STYLE_NAME_REF: { OUString aAttrValue( rAttrValue ); @@ -646,6 +650,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList( break; case XML_ATACTION_RENAME_NEG_PERCENT: bRename = true; + SAL_FALLTHROUGH; case XML_ATACTION_NEG_PERCENT: { OUString aAttrValue( rAttrValue ); @@ -655,6 +660,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList( break; case XML_ATACTION_RENAME_ADD_NAMESPACE_PREFIX: bRename = true; + SAL_FALLTHROUGH; case XML_ATACTION_ADD_NAMESPACE_PREFIX: { OUString aAttrValue( rAttrValue ); @@ -681,6 +687,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList( break; case XML_ATACTION_RENAME_REMOVE_NAMESPACE_PREFIX: bRename = true; + SAL_FALLTHROUGH; case XML_ATACTION_REMOVE_NAMESPACE_PREFIX: { OUString aAttrValue( rAttrValue ); |