Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1136

Complie Erros in Header RegularExpression.hpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • Build
    • None
    • Operating System: Linux
      Platform: All
    • 26728

    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)); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            rlogel@navtechinc.com Ray Logel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: