diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-09 08:52:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-21 08:42:30 +0200 |
commit | 528632660b72b105345945c13c5b68060d94a91b (patch) | |
tree | 860508d482959abeb9175f0ce6b9e65954269f95 /xmloff/source/text | |
parent | aee66aa85e75f67135e5c6079a281e18402d261a (diff) |
convert ErrCode to strong typedef
would have preferred to re-use o3tl::strong_int, of which this
is a modified copy, but there are lots of convenience accessors
which are nice to define on the class.
Change-Id: I301b807aaf02fbced3bf75de1e1692cde6c0340a
Reviewed-on: https://gerrit.libreoffice.org/38497
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventExport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventExport.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/text/XMLAutoTextEventExport.cxx b/xmloff/source/text/XMLAutoTextEventExport.cxx index 2d409a48dca6..70d6ebf48a5e 100644 --- a/xmloff/source/text/XMLAutoTextEventExport.cxx +++ b/xmloff/source/text/XMLAutoTextEventExport.cxx @@ -99,7 +99,7 @@ void XMLAutoTextEventExport::initialize( } -sal_uInt32 XMLAutoTextEventExport::exportDoc( enum XMLTokenEnum ) +ErrCode XMLAutoTextEventExport::exportDoc( enum XMLTokenEnum ) { if( !(getExportFlags() & SvXMLExportFlags::OASIS) ) { @@ -149,7 +149,7 @@ sal_uInt32 XMLAutoTextEventExport::exportDoc( enum XMLTokenEnum ) GetDocHandler()->endDocument(); } - return 0; + return ERRCODE_NONE; } bool XMLAutoTextEventExport::hasEvents() diff --git a/xmloff/source/text/XMLAutoTextEventExport.hxx b/xmloff/source/text/XMLAutoTextEventExport.hxx index 014ce926ee28..bea57fd47ddc 100644 --- a/xmloff/source/text/XMLAutoTextEventExport.hxx +++ b/xmloff/source/text/XMLAutoTextEventExport.hxx @@ -63,7 +63,7 @@ public: protected: /// export the events off all autotexts - virtual sal_uInt32 exportDoc( + virtual ErrCode exportDoc( enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID ) override; /// does the document have any events ? |