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 | 5385b8c83ac6984432f6777762c0f929703edae2 (patch) | |
tree | 58801d8c2099824f4263ba76019fa1771147fca8 | |
parent | bugfixes for string constant (diff) | |
download | core-5385b8c83ac6984432f6777762c0f929703edae2.tar.gz core-5385b8c83ac6984432f6777762c0f929703edae2.zip |
bugfixes for string constant
-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 21b62cbc7e6e..d8bdc37e3b85 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 c6c0478a7eb9..ece1216c69b8 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; } |