summaryrefslogtreecommitdiffstats
path: root/idlc/source/astconstant.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-18 12:34:03 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-18 12:34:03 +0000
commitfa3a276d065ff08cd469fcce70b0497e4d12e7a7 (patch)
treeefbcc510754f794416328510bf6a57a0b294d7ed /idlc/source/astconstant.cxx
parentINTEGRATION: CWS sb28 (1.2.16); FILE MERGED (diff)
downloadcore-fa3a276d065ff08cd469fcce70b0497e4d12e7a7.tar.gz
core-fa3a276d065ff08cd469fcce70b0497e4d12e7a7.zip
INTEGRATION: CWS sb28 (1.5.20); FILE MERGED
2005/01/03 16:38:00 sb 1.5.20.1: #i28722# Removed support for char and string constants.
Diffstat (limited to 'idlc/source/astconstant.cxx')
-rw-r--r--idlc/source/astconstant.cxx15
1 files changed, 2 insertions, 13 deletions
diff --git a/idlc/source/astconstant.cxx b/idlc/source/astconstant.cxx
index a2d05e52b6f1..e58b98a72ba8 100644
--- a/idlc/source/astconstant.cxx
+++ b/idlc/source/astconstant.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: astconstant.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: obo $ $Date: 2004-06-03 15:06:56 $
+ * last change: $Author: kz $ $Date: 2005-01-18 13:34:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -136,8 +136,6 @@ sal_Bool AstConstant::dumpBlob(
aConst.m_type = RT_TYPE_DOUBLE;
aConst.m_value.aDouble = exprVal->u.dval;
break;
- case ET_char:
- break;
case ET_byte:
aConst.m_type = RT_TYPE_BYTE;
aConst.m_value.aByte = exprVal->u.byval;
@@ -146,15 +144,6 @@ sal_Bool AstConstant::dumpBlob(
aConst.m_type = RT_TYPE_BOOL;
aConst.m_value.aBool = exprVal->u.bval;
break;
- case ET_string:
- {
- aConst.m_type = RT_TYPE_STRING;
- ::rtl::OUString aTempStr( OUString::createFromAscii(exprVal->u.strval->getStr()));
- str = new sal_Unicode[aTempStr.getLength()+1];
- rtl_copyMemory(str, aTempStr.getStr(), (aTempStr.getLength()+1) * sizeof(sal_Unicode));
- aConst.m_value.aString = str;
- }
- break;
default:
{
fprintf(stderr, "%s: exprtype to const type: cannot convert ExprType\n",