diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-06-22 12:53:29 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-06-24 09:00:20 +0000 |
commit | 34f50399f1bc896849a0e3fc3598ab1225d760c5 (patch) | |
tree | 0f0083ac029acee76587584b70d8b00335940878 /xmlreader | |
parent | 64245c108aec557f62c254486aa354382bd445ce (diff) |
fdo#43460 shell,vcl,xmlreader: use isEmpty()
Change-Id: Ie3d16da6c246b79c4c304b21476f84b2788f0d6e
Reviewed-on: https://gerrit.libreoffice.org/4444
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'xmlreader')
-rw-r--r-- | xmlreader/source/pad.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlreader/source/pad.cxx b/xmlreader/source/pad.cxx index d48915702784..c7d9b4dba9b2 100644 --- a/xmlreader/source/pad.cxx +++ b/xmlreader/source/pad.cxx @@ -32,7 +32,7 @@ void Pad::add(char const * begin, sal_Int32 length) { begin != 0 && length >= 0 && !(span_.is() && buffer_.getLength() != 0)); if (length != 0) { flushSpan(); - if (buffer_.getLength() == 0) { + if (buffer_.isEmpty()) { span_ = Span(begin, length); } else { buffer_.append(begin, length); @@ -59,7 +59,7 @@ Span Pad::get() const { assert(!(span_.is() && buffer_.getLength() != 0)); if (span_.is()) { return span_; - } else if (buffer_.getLength() == 0) { + } else if (buffer_.isEmpty()) { return Span(""); } else { return Span(buffer_.getStr(), buffer_.getLength()); |