summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-02 18:59:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-03 17:11:14 +0100
commitab285c743afa1c8769581871d7b56374fd8c49f1 (patch)
treed5628df49fb4db29d474e5e7b7cef4072c33153a /framework
parentf4544f3903fed3a656e3cd57e1bd83582e024b96 (diff)
loplugin:stringadd
tweak the plugin to be more permissive, then validate by hand afterwards Change-Id: I40c5c911fe6ff7e45baaca372abf7dac211d9654 Reviewed-on: https://gerrit.libreoffice.org/81942 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/fwe/xml/menudocumenthandler.cxx39
1 files changed, 26 insertions, 13 deletions
diff --git a/framework/source/fwe/xml/menudocumenthandler.cxx b/framework/source/fwe/xml/menudocumenthandler.cxx
index 8b9384f672fc..94a2dee58d78 100644
--- a/framework/source/fwe/xml/menudocumenthandler.cxx
+++ b/framework/source/fwe/xml/menudocumenthandler.cxx
@@ -230,7 +230,8 @@ void SAL_CALL OReadMenuDocumentHandler::endDocument()
{
if ( m_nElementDepth > 0 )
{
- OUString aErrorMessage = getErrorLineString() + "A closing element is missing!";
+ OUString aErrorMessage = getErrorLineString() +
+ "A closing element is missing!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -276,12 +277,14 @@ void SAL_CALL OReadMenuDocumentHandler::endElement( const OUString& aName )
m_xReader.clear();
if ( m_eReaderMode == ReaderMode::MenuBar && aName != ELEMENT_MENUBAR )
{
- OUString aErrorMessage = getErrorLineString() + "closing element menubar expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "closing element menubar expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
else if ( m_eReaderMode == ReaderMode::MenuPopup && aName != ELEMENT_MENUPOPUP )
{
- OUString aErrorMessage = getErrorLineString() + "closing element menupopup expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "closing element menupopup expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
m_eReaderMode = ReaderMode::None;
@@ -381,7 +384,8 @@ void SAL_CALL OReadMenuBarHandler::startElement(
}
else
{
- OUString aErrorMessage = getErrorLineString() + "attribute id for element menu required!";
+ OUString aErrorMessage = getErrorLineString() +
+ "attribute id for element menu required!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
@@ -391,7 +395,8 @@ void SAL_CALL OReadMenuBarHandler::startElement(
}
else
{
- OUString aErrorMessage = getErrorLineString() + "element menu expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "element menu expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -412,7 +417,8 @@ void OReadMenuBarHandler::endElement( const OUString& aName )
m_bMenuMode = false;
if ( aName != ELEMENT_MENU )
{
- OUString aErrorMessage = getErrorLineString() + "closing element menu expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "closing element menu expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -460,7 +466,8 @@ void SAL_CALL OReadMenuHandler::startElement(
}
else
{
- OUString aErrorMessage = getErrorLineString() + "unknown element found!";
+ OUString aErrorMessage = getErrorLineString() +
+ "unknown element found!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -481,7 +488,8 @@ void SAL_CALL OReadMenuHandler::endElement( const OUString& aName )
m_bMenuPopupMode = false;
if ( aName != ELEMENT_MENUPOPUP )
{
- OUString aErrorMessage = getErrorLineString() + "closing element menupopup expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "closing element menupopup expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -577,7 +585,8 @@ void SAL_CALL OReadMenuPopupHandler::startElement(
}
else
{
- OUString aErrorMessage = getErrorLineString() + "attribute id for element menu required!";
+ OUString aErrorMessage = getErrorLineString() +
+ "attribute id for element menu required!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
@@ -645,7 +654,8 @@ void SAL_CALL OReadMenuPopupHandler::startElement(
}
else
{
- OUString aErrorMessage = getErrorLineString() + "unknown element found!";
+ OUString aErrorMessage = getErrorLineString() +
+ "unknown element found!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -666,7 +676,8 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName )
m_bMenuMode = false;
if ( aName != ELEMENT_MENU )
{
- OUString aErrorMessage = getErrorLineString() + "closing element menu expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "closing element menu expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -679,7 +690,8 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName )
{
if ( aName != ELEMENT_MENUITEM )
{
- OUString aErrorMessage = getErrorLineString() + "closing element menuitem expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "closing element menuitem expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}
@@ -687,7 +699,8 @@ void SAL_CALL OReadMenuPopupHandler::endElement( const OUString& aName )
{
if ( aName != ELEMENT_MENUSEPARATOR )
{
- OUString aErrorMessage = getErrorLineString() + "closing element menuseparator expected!";
+ OUString aErrorMessage = getErrorLineString() +
+ "closing element menuseparator expected!";
throw SAXException( aErrorMessage, Reference< XInterface >(), Any() );
}
}