summaryrefslogtreecommitdiff
path: root/include/xmlreader
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:29:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:32:02 +0100
commit1e661634129bb692294972b5b61df2874632d14d (patch)
treef877dab1866494687d83c73387dbe5458d8dbb80 /include/xmlreader
parent51b45df6bba163dec7ba91c700de695ad517e5dd (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I86546bcf9b476c73da2d6bff30ee1e56933f69c4
Diffstat (limited to 'include/xmlreader')
-rw-r--r--include/xmlreader/span.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/xmlreader/span.hxx b/include/xmlreader/span.hxx
index b44c0eb61adc..f89d7a98206b 100644
--- a/include/xmlreader/span.hxx
+++ b/include/xmlreader/span.hxx
@@ -35,7 +35,7 @@ struct OOO_DLLPUBLIC_XMLREADER Span {
char const * begin;
sal_Int32 length;
- inline Span(): begin(0), length(0) {}
+ inline Span(): begin(nullptr), length(0) {}
// init length to avoid compiler warnings
inline Span(char const * theBegin, sal_Int32 theLength):
@@ -45,9 +45,9 @@ struct OOO_DLLPUBLIC_XMLREADER Span {
begin(literal), length(N - 1)
{}
- inline void clear() throw() { begin = 0; }
+ inline void clear() throw() { begin = nullptr; }
- inline bool is() const { return begin != 0; }
+ inline bool is() const { return begin != nullptr; }
inline bool equals(Span const & text) const {
return length == text.length