diff options
Diffstat (limited to 'sw/source/ui/wrtsh/wrtundo.cxx')
-rw-r--r-- | sw/source/ui/wrtsh/wrtundo.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/wrtsh/wrtundo.cxx b/sw/source/ui/wrtsh/wrtundo.cxx index 42bf7750d8a7..f9ce8879cab2 100644 --- a/sw/source/ui/wrtsh/wrtundo.cxx +++ b/sw/source/ui/wrtsh/wrtundo.cxx @@ -147,7 +147,7 @@ sal_uInt16 SwWrtShell::GetDoStrings( DoType eDoType, SfxStringListItem& rStrs ) ::rtl::OUStringBuffer buf; for (size_t i = 0; i < comments.size(); ++i) { - OSL_ENSURE(comments[i].getLength(), "no Undo/Redo Text set"); + OSL_ENSURE(!comments[i].isEmpty(), "no Undo/Redo Text set"); buf.append(comments[i]); buf.append(sal_Unicode('\n')); } @@ -161,7 +161,7 @@ String SwWrtShell::GetRepeatString() const ::rtl::OUString str; GetRepeatInfo(& str); - if (str.getLength() == 0) + if (str.isEmpty()) { return str; } |