summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-30 08:20:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-05-02 17:02:28 +0200
commit10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch)
tree7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /sax
parenta9243e626193ab4efe3a618413886773336a38e6 (diff)
throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite
Change-Id: I076f16d0536b534abf0ced4d76051eadb4c0e033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114949 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/saxwriter.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index 033052a0bd8d..37eb58f099db 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -148,7 +148,7 @@ public:
bool writeString(const OUString& rWriteOutString, bool bDoNormalization,
bool bNormalizeWhitespace);
- sal_uInt32 GetLastColumnCount() const throw()
+ sal_uInt32 GetLastColumnCount() const noexcept
{
return static_cast<sal_uInt32>(nCurrentPos - nLastLineFeedPos);
}
@@ -1069,7 +1069,7 @@ public: // XServiceInfo
sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
private:
- sal_Int32 getIndentPrefixLength(sal_Int32 nFirstLineBreakOccurrence) throw();
+ sal_Int32 getIndentPrefixLength(sal_Int32 nFirstLineBreakOccurrence) noexcept;
Reference<XOutputStream> m_out;
std::unique_ptr<SaxWriterHelper> m_pSaxWriterHelper;
@@ -1082,7 +1082,7 @@ private:
sal_Int32 m_nLevel;
};
-sal_Int32 SAXWriter::getIndentPrefixLength(sal_Int32 nFirstLineBreakOccurrence) throw()
+sal_Int32 SAXWriter::getIndentPrefixLength(sal_Int32 nFirstLineBreakOccurrence) noexcept
{
sal_Int32 nLength = -1;
if (m_pSaxWriterHelper)
@@ -1098,7 +1098,7 @@ sal_Int32 SAXWriter::getIndentPrefixLength(sal_Int32 nFirstLineBreakOccurrence)
return nLength;
}
-bool isFirstCharWhitespace(const sal_Unicode* p) throw() { return *p == ' '; }
+bool isFirstCharWhitespace(const sal_Unicode* p) noexcept { return *p == ' '; }
// XServiceInfo
OUString SAXWriter::getImplementationName() { return "com.sun.star.extensions.xml.sax.Writer"; }