From 487afe00ef5b2a969d3b296309125f981ee4a0a3 Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Wed, 13 Aug 2003 16:23:23 +0000
Subject: INTEGRATION: CWS sb7 (1.3.58); FILE MERGED 2003/08/12 08:36:02 sb
1.3.58.1: #i16664# Warnings about unusable ToFloat/Double.
---
tools/source/string/tstring.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx
index 290e70eeefc1..5d139239114d 100644
--- a/tools/source/string/tstring.cxx
+++ b/tools/source/string/tstring.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tstring.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 17:04:53 $
+ * last change: $Author: hr $ $Date: 2003-08-13 17:23:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -61,6 +61,7 @@
#include
+#include "osl/diagnose.h"
#ifndef _OSL_INTERLCK_H
#include
#endif
@@ -179,6 +180,7 @@ float ByteString::ToFloat() const
{
DBG_CHKTHIS( ByteString, DbgCheckByteString );
+ OSL_ENSURE(false, "ByteString::ToFloat unusable");
return 0;
}
@@ -188,6 +190,7 @@ double ByteString::ToDouble() const
{
DBG_CHKTHIS( ByteString, DbgCheckByteString );
+ OSL_ENSURE(false, "ByteString::ToDouble unusable");
return 0;
}
--
cgit