summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-19 13:23:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-20 07:41:29 +0100
commite725836ec19858be83bf6f7f251dd52dbcdf31d6 (patch)
treeec8aafe6e546a35dff6c3349e9644a6d6b94eea9 /include
parent73139fe600fc1399ae828077981a2498cb0a0b0c (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 'include')
-rw-r--r--include/tools/date.hxx4
-rw-r--r--include/tools/multisel.hxx2
-rw-r--r--include/xmloff/DashStyle.hxx2
-rw-r--r--include/xmloff/i18nmap.hxx2
-rw-r--r--include/xmloff/txtparae.hxx2
5 files changed, 5 insertions, 7 deletions
diff --git a/include/tools/date.hxx b/include/tools/date.hxx
index 071b3c3b765c..c70d3450399c 100644
--- a/include/tools/date.hxx
+++ b/include/tools/date.hxx
@@ -194,10 +194,8 @@ public:
This may be necessary after Date ctors or if the SetDate(), SetDay(),
SetMonth(), SetYear() methods set individual non-matching values.
Adding/subtracting to/from dates never produces invalid dates.
-
- @returns TRUE if the date was normalized, i.e. not valid before.
*/
- bool Normalize();
+ void Normalize();
bool IsBetween( const Date& rFrom, const Date& rTo ) const
{ return ((mnDate >= rFrom.mnDate) &&
diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx
index 246e30b8e5da..adb6a998fe98 100644
--- a/include/tools/multisel.hxx
+++ b/include/tools/multisel.hxx
@@ -91,7 +91,7 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC StringRangeEnumerator
bool setRange( const OUString& i_rNewRange );
bool insertRange( sal_Int32 nFirst, sal_Int32 nLast, bool bSequence );
- bool insertJoinedRanges( const std::vector< sal_Int32 >& rNumbers );
+ void insertJoinedRanges( const std::vector< sal_Int32 >& rNumbers );
bool checkValue( sal_Int32, const std::set< sal_Int32 >* i_pPossibleValues = nullptr ) const;
public:
class TOOLS_DLLPUBLIC Iterator
diff --git a/include/xmloff/DashStyle.hxx b/include/xmloff/DashStyle.hxx
index 04de8f1684f2..f7251ed90a79 100644
--- a/include/xmloff/DashStyle.hxx
+++ b/include/xmloff/DashStyle.hxx
@@ -55,7 +55,7 @@ public:
XMLDashStyleExport( SvXMLExport& rExport );
~XMLDashStyleExport();
- bool exportXML( const OUString& rStrName,
+ void exportXML( const OUString& rStrName,
const css::uno::Any& rValue );
};
diff --git a/include/xmloff/i18nmap.hxx b/include/xmloff/i18nmap.hxx
index 3d97063a3b91..c3921281f70f 100644
--- a/include/xmloff/i18nmap.hxx
+++ b/include/xmloff/i18nmap.hxx
@@ -52,7 +52,7 @@ class XMLOFF_DLLPUBLIC SvI18NMap
public:
// Add a name mapping
- bool Add( sal_uInt16 nKind, const OUString& rName,
+ void Add( sal_uInt16 nKind, const OUString& rName,
const OUString& rNewName );
// Return a mapped name. If the name could not be found, return the
diff --git a/include/xmloff/txtparae.hxx b/include/xmloff/txtparae.hxx
index 6e65e1082e03..d59137ca977e 100644
--- a/include/xmloff/txtparae.hxx
+++ b/include/xmloff/txtparae.hxx
@@ -517,7 +517,7 @@ public:
// It the model implements the xAutoStylesSupplier interface, the automatic
// styles can exported without iterating over the text portions
- bool collectTextAutoStylesOptimized( bool bIsProgress );
+ void collectTextAutoStylesOptimized( bool bIsProgress );
// This method exports all automatic styles that have been collected.
void exportTextAutoStyles();