diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2001-03-27 09:54:22 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2001-03-27 09:54:22 +0000 |
commit | 63b99043d77d153c7d40b9ce1a2876cb05d9896b (patch) | |
tree | 5952aaeeb8025d43cb0b0e0dcd0a26a702ad71c8 /idlc | |
parent | 2edd5ba544ed1cca91c1f440a3daa44682041e67 (diff) |
bugfixes for string constant
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/astconstant.cxx | 9 | ||||
-rw-r--r-- | idlc/source/scanner.ll | 6 |
2 files changed, 5 insertions, 10 deletions
diff --git a/idlc/source/astconstant.cxx b/idlc/source/astconstant.cxx index 0b1794896..125b4bf3b 100644 --- a/idlc/source/astconstant.cxx +++ b/idlc/source/astconstant.cxx @@ -2,9 +2,9 @@ * * $RCSfile: astconstant.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: jsc $ $Date: 2001-03-27 10:53:19 $ + * last change: $Author: jsc $ $Date: 2001-03-27 10:54:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -97,9 +97,6 @@ sal_Bool AstConstant::dumpBlob(RegistryTypeWriter& rBlob, sal_uInt16 index) { RTConstValue aConst; sal_Unicode* str = NULL; -// sal_Bool bRelativ = sal_False; -// if ( getScope()->getScopeNodeType() == NT_constants ) -// bRelativ = sal_True; AstExprValue *exprVal = getConstValue()->getExprValue(); switch (getConstValueType()) @@ -163,8 +160,6 @@ sal_Bool AstConstant::dumpBlob(RegistryTypeWriter& rBlob, sal_uInt16 index) } } -// OString name(getRelativName()); -// if ( getNodeType() == NT_enum_val || bRelativ ) OString name = getLocalName(); OUString type; diff --git a/idlc/source/scanner.ll b/idlc/source/scanner.ll index c6c0478a7..ece1216c6 100644 --- a/idlc/source/scanner.ll +++ b/idlc/source/scanner.ll @@ -2,9 +2,9 @@ * * $RCSfile: scanner.ll,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: jsc $ $Date: 2001-03-15 12:30:43 $ + * last change: $Author: jsc $ $Date: 2001-03-27 10:53:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -323,7 +323,7 @@ oneway return IDL_ONEWAY; } {STRING_LITERAL} { - yylval.sval = new ::rtl::OString(yytext); + yylval.sval = new ::rtl::OString(yytext+1, strlen(yytext)-2); return IDL_STRING_LITERAL; } |