summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/rtftok')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 8bd05dc5d2b8..8849ed718ebc 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -1237,7 +1237,7 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
aBuf.append(ch);
else if (bInKeyword && isspace(ch))
bInKeyword = false;
- if (aBuf.getLength() > 0 && !isalnum(ch))
+ if (!aBuf.isEmpty() && !isalnum(ch))
bFoundCode = true;
}
Strm().Seek(nPos);
@@ -4649,12 +4649,12 @@ void RTFDocumentImpl::setSkipUnknown(bool bSkipUnknown)
void RTFDocumentImpl::checkUnicode(bool bUnicode, bool bHex)
{
- if (bUnicode && m_aUnicodeBuffer.getLength() > 0)
+ if (bUnicode && !m_aUnicodeBuffer.isEmpty())
{
OUString aString = m_aUnicodeBuffer.makeStringAndClear();
text(aString);
}
- if (bHex && m_aHexBuffer.getLength() > 0)
+ if (bHex && !m_aHexBuffer.isEmpty())
{
OUString aString = OStringToOUString(m_aHexBuffer.makeStringAndClear(), m_aStates.top().nCurrentEncoding);
text(aString);