You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by xe...@xml.apache.org on 2004/07/07 15:11:54 UTC
[jira] Resolved: (XERCESC-1136) Complie Erros in Header RegularExpression.hpp
Message:
The following issue has been resolved as FIXED.
Resolver: Alberto Massari
Date: Wed, 7 Jul 2004 6:11 AM
Fix is in CVS. Please verify.
Alberto
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1136
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1136
Summary: Complie Erros in Header RegularExpression.hpp
Type: Bug
Status: Resolved
Resolution: FIXED
Project: Xerces-C++
Components:
Build
Versions:
2.4.0
Assignee:
Reporter: Ray Logel
Created: Fri, 6 Feb 2004 3:49 PM
Updated: Wed, 7 Jul 2004 6:11 AM
Environment: Operating System: Linux
Platform: All
Description:
In the header xercesc/util/regx/RegularExpression.hpp there are const
correctness errors. The change is very simple.
--- RegularExpression.hpp Wed Aug 13 22:57:27 2003
+++ /usr/local/include/xercesc/util/regx/RegularExpression.hpp Fri Feb 6
10:25:48 2004
@@ -384,8 +384,8 @@
break;
case Token::T_MODIFIERGROUP:
ret = fOpFactory.createModifierOp(next, result,
- ((ModifierToken *) token)->getOptions(),
- ((ModifierToken *) token)->getOptionsMask());
+ ((const ModifierToken *) token)->getOptions(),
+ ((const ModifierToken *)
token)->getOptionsMask());
break;
}
@@ -451,7 +451,7 @@
Op* const next,
const bool reverse) {
- Token* condTok = ((ConditionToken*) token)->getConditionToken();
+ Token* condTok = ((const ConditionToken*) token)->getConditionToken();
Token* yesTok = token->getChild(0);
Token* noTok = token->getChild(1);
int refNo = token->getReferenceNo();
@@ -638,7 +638,7 @@
const XMLInt32 ch2)
{
- return (0==XMLString::compareNIString((XMLCh*)&ch1,(XMLCh*)&ch2, 1));
+ return (0==XMLString::compareNIString((const XMLCh*)&ch1,(const
XMLCh*)&ch2, 1));
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org