diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 03:26:35 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 03:26:35 +0000 |
commit | 2f1255e3cdc6f466fb325896538d76044835388b (patch) | |
tree | 1022d452150be0d4105b5c5ea9e58f6eb0bb123f /sal/qa/rtl/ostring | |
parent | 6b0e33092c2886f9342c0e1bea24c92196fe2100 (diff) |
INTEGRATION: CWS warnings01 (1.3.38); FILE MERGED
2005/09/14 15:19:00 sb 1.3.38.1: #i53898# Made code warning-free.
Diffstat (limited to 'sal/qa/rtl/ostring')
-rw-r--r-- | sal/qa/rtl/ostring/rtl_string.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sal/qa/rtl/ostring/rtl_string.cxx b/sal/qa/rtl/ostring/rtl_string.cxx index d4689175de0f..e766aade2658 100644 --- a/sal/qa/rtl/ostring/rtl_string.cxx +++ b/sal/qa/rtl/ostring/rtl_string.cxx @@ -9,7 +9,7 @@ namespace rtl_string void getLength_000() { - sal_Int32 nValue = rtl_string_getLength( NULL ); + rtl_string_getLength( NULL ); // should not GPF } @@ -19,7 +19,11 @@ namespace rtl_string sal_Int32 nValue = rtl_string_getLength( aStr.pData ); CPPUNIT_ASSERT_MESSAGE("Length must equal getLength()", aStr.getLength() == nValue); - CPPUNIT_ASSERT_MESSAGE("Length must equal strlen()", strlen(aStr.getStr()) == nValue); + CPPUNIT_ASSERT_MESSAGE( + "Length must equal strlen()", + nValue >= 0 + && (strlen(aStr.getStr()) + == sal::static_int_cast< sal_uInt32 >(nValue))); } // Change the following lines only, if you add, remove or rename // member functions of the current class, |