Apache OpenOffice (AOO) Bugzilla – Issue 16664
ByteString::ToDouble non-existant, and warning-less
Last modified: 2003-08-18 09:00:05 UTC
The code says it all: float ByteString::ToFloat() const { DBG_CHKTHIS( ByteString, DbgCheckByteString ); return 0; } double ByteString::ToDouble() const { DBG_CHKTHIS( ByteString, DbgCheckByteString ); return 0; } Is this a feature ? - it wasted a load of my time, can't we just chain to the rtl:: versions ?
@sb: Is there any reason why these methods do not call rtl_str_ToDouble and rtl_str_ToFloat ? The UniString methods do so. IMHO we should depredicate the ByteStrings at all.
Michael, you have my full sympathy ... I can't believe that such stupid things survived for years in our code base :-( Heiner
Either fix this or remove tools Uni/ByteString (in favor of rtl strings), whatever happens first...
.
I'll add an OSL_ASSERT, but no real fix, as tools strings are deprecated, anyway (see #i17875#).