diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-19 13:23:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-20 07:41:29 +0100 |
commit | e725836ec19858be83bf6f7f251dd52dbcdf31d6 (patch) | |
tree | ec8aafe6e546a35dff6c3349e9644a6d6b94eea9 /xmloff/source | |
parent | 73139fe600fc1399ae828077981a2498cb0a0b0c (diff) |
loplugin:unused-returns in filter,tools,xmloff
Change-Id: I7a57be7e241883adac4417baa699a97d6304a631
Reviewed-on: https://gerrit.libreoffice.org/48188
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/i18nmap.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/style/DashStyle.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/xmloff/source/core/i18nmap.cxx b/xmloff/source/core/i18nmap.cxx index cc8ad3682bbf..85bd293cb775 100644 --- a/xmloff/source/core/i18nmap.cxx +++ b/xmloff/source/core/i18nmap.cxx @@ -20,13 +20,12 @@ #include <rtl/ustring.hxx> #include <xmloff/i18nmap.hxx> -bool SvI18NMap::Add( sal_uInt16 nKind, const OUString& rName, +void SvI18NMap::Add( sal_uInt16 nKind, const OUString& rName, const OUString& rNewName ) { SvI18NMapEntry_Key aKey(nKind, rName); bool bIsNewInsertion = m_aMap.emplace(aKey, rNewName).second; SAL_INFO_IF(!bIsNewInsertion, "xmloff.core", "SvI18NMap::Add: item with key \"" << rName << "\" registered already, likely invalid input file"); - return bIsNewInsertion; } const OUString& SvI18NMap::Get( sal_uInt16 nKind, const OUString& rName ) const diff --git a/xmloff/source/style/DashStyle.cxx b/xmloff/source/style/DashStyle.cxx index bba930eda041..96ee20aed5e0 100644 --- a/xmloff/source/style/DashStyle.cxx +++ b/xmloff/source/style/DashStyle.cxx @@ -210,7 +210,7 @@ XMLDashStyleExport::~XMLDashStyleExport() { } -bool XMLDashStyleExport::exportXML( +void XMLDashStyleExport::exportXML( const OUString& rStrName, const uno::Any& rValue ) { @@ -304,7 +304,6 @@ bool XMLDashStyleExport::exportXML( true, false ); } } - return false; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 40e98eaab5d3..4a94221a9460 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -1429,7 +1429,7 @@ static const enum XMLTokenEnum lcl_XmlBookmarkElements[] = { // This function replaces the text portion iteration during auto style // collection. -bool XMLTextParagraphExport::collectTextAutoStylesOptimized( bool bIsProgress ) +void XMLTextParagraphExport::collectTextAutoStylesOptimized( bool bIsProgress ) { GetExport().GetShapeExport(); // make sure the graphics styles family is added @@ -1631,8 +1631,6 @@ bool XMLTextParagraphExport::collectTextAutoStylesOptimized( bool bIsProgress ) } } } - - return true; } void XMLTextParagraphExport::exportText( |