diff options
author | Lars Langhans <lla@openoffice.org> | 2003-03-10 10:04:08 +0000 |
---|---|---|
committer | Lars Langhans <lla@openoffice.org> | 2003-03-10 10:04:08 +0000 |
commit | 108c839bba66ad25c329070dc9990e24c582164c (patch) | |
tree | 9ae17a72e9c3241b1c2f5110b9e33512921961c2 | |
parent | b19468ab93e1615af9a0314e2d55437e4f1a22bd (diff) |
changes, to build OStringBuffer.cxx on wntmsci9
-rw-r--r-- | sal/qa/OStringBuffer/rtl_OStringBuffer.cxx | 19 | ||||
-rw-r--r-- | sal/qa/OStringBuffer/rtl_String_Const.h | 6 |
2 files changed, 17 insertions, 8 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx index 4f4f4c9035f3..842f275c45ba 100644 --- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx +++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rtl_OStringBuffer.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: lwang $ $Date: 2003-01-14 03:35:48 $ + * last change: $Author: lla $ $Date: 2003-03-10 11:04:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -135,22 +135,31 @@ namespace rtl_OStringBuffer #endif ::rtl::OStringBuffer aStrBuf3(kNonSInt32Max); +#ifdef WITH_CORE CPPUNIT_ASSERT_MESSAGE ( "New OStringBuffer containing no characters and contain assigned capacity", aStrBuf1.getLength() == 0 && ! *(aStrBuf1.getStr()) && aStrBuf1.getCapacity() == kTestStr2Len && - #ifdef WITH_CORE aStrBuf2.getLength() == 0 && ! *(aStrBuf2.getStr()) && aStrBuf2.getCapacity() == kSInt32Max && - #else + aStrBuf3.getLength() == 0 && + ! *(aStrBuf3.getStr()) && aStrBuf3.getCapacity() == kNonSInt32Max + + ); +#else + CPPUNIT_ASSERT_MESSAGE + ( + "New OStringBuffer containing no characters and contain assigned capacity", + aStrBuf1.getLength() == 0 && + ! *(aStrBuf1.getStr()) && aStrBuf1.getCapacity() == kTestStr2Len && aStrBuf2.getLength() == 0 && ! *(aStrBuf2.getStr()) && aStrBuf2.getCapacity() == 16 && - #endif aStrBuf3.getLength() == 0 && ! *(aStrBuf3.getStr()) && aStrBuf3.getCapacity() == kNonSInt32Max ); +#endif } diff --git a/sal/qa/OStringBuffer/rtl_String_Const.h b/sal/qa/OStringBuffer/rtl_String_Const.h index 050f55f20d90..b45e38791b76 100644 --- a/sal/qa/OStringBuffer/rtl_String_Const.h +++ b/sal/qa/OStringBuffer/rtl_String_Const.h @@ -2,9 +2,9 @@ * * $RCSfile: rtl_String_Const.h,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: lwang $ $Date: 2003-01-13 01:49:50 $ + * last change: $Author: lla $ $Date: 2003-03-10 11:04:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1410,7 +1410,7 @@ static const sal_Int32 expValStrLastNormal[nStrLastNormalCount] = 0,-1,0,4,-1,-1,-1,-1,-1,3,15,11 }; //------------------------------------------------------------------------ -static const sal_Int32 kNonSInt64Max = LLONG_MIN; +static const sal_Int32 kNonSInt64Max = LONG_MIN; static const sal_Int32 kNonSInt32Max = INT_MIN; static const sal_Int32 kNonSInt16Max = SHRT_MIN; //------------------------------------------------------------------------ |