diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 17:22:11 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 20:32:39 +0100 |
commit | a2454a42ad2236f0f6b88be166bc7e6a8f90f036 (patch) | |
tree | 7f6dfc38cfd617f41c63a17640ec7ef8650a2c45 /sal/qa/OStringBuffer | |
parent | eba2ef9504fe4034cbb44840d459d82ab8a141b1 (diff) |
fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
Diffstat (limited to 'sal/qa/OStringBuffer')
-rw-r--r-- | sal/qa/OStringBuffer/rtl_OStringBuffer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx index 18fab173e701..ca5274dc1900 100644 --- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx +++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx @@ -52,7 +52,7 @@ namespace rtl_OStringBuffer CPPUNIT_ASSERT_MESSAGE ( "New OStringBuffer containing no characters", - aStrBuf.getLength() == 0 && + aStrBuf.isEmpty() && *pStr == '\0' && aStrBuf.getCapacity() == 16 ); } @@ -90,10 +90,10 @@ namespace rtl_OStringBuffer CPPUNIT_ASSERT_MESSAGE ( "New OStringBuffer containing no characters and contain assigned capacity", - aStrBuf1.getLength() == 0 && + aStrBuf1.isEmpty() && *pStr1 == '\0' && aStrBuf1.getCapacity() == kTestStr2Len && - aStrBuf2.getLength() == 0 && + aStrBuf2.isEmpty() && *pStr2 == '\0' && aStrBuf2.getCapacity() == 0 ); @@ -111,7 +111,7 @@ namespace rtl_OStringBuffer CPPUNIT_ASSERT_MESSAGE ( "New OStringBuffer containing no characters and contain assigned capacity", - aStrBuf3.getLength() == 0 && + aStrBuf3.isEmpty() && *pStr == '\0' && aStrBuf3.getCapacity() == kNonSInt32Max ); |