Ticket #43895: patch-src-xercesc-util-regx-RegxParser.cpp.diff
File patch-src-xercesc-util-regx-RegxParser.cpp.diff, 2.0 KB (added by gallafent, 10 years ago) |
---|
-
src/xercesc/util/regx/RegxParser.cpp
old new 691 691 || (ch == chDash && getCharData() == chCloseSquare && firstLoop))) { 692 692 // if regex = [-] then invalid... 693 693 // '[', ']', '-' not allowed and should be escaped 694 XMLCh chStr[] = { ch, chNull };694 XMLCh chStr[] = { static_cast<XMLCh>(ch), chNull }; 695 695 ThrowXMLwithMemMgr2(ParseException,XMLExcepts::Parser_CC6, chStr, chStr, getMemoryManager()); 696 696 } 697 697 if (ch == chDash && getCharData() == chDash && getState() != REGX_T_BACKSOLIDUS && !wasDecoded) { 698 XMLCh chStr[] = { ch, chNull };698 XMLCh chStr[] = { static_cast<XMLCh>(ch), chNull }; 699 699 ThrowXMLwithMemMgr2(ParseException,XMLExcepts::Parser_CC6, chStr, chStr, getMemoryManager()); 700 700 } 701 701 … … 720 720 else { 721 721 722 722 XMLInt32 rangeEnd = getCharData(); 723 XMLCh rangeEndStr[] = { rangeEnd, chNull };723 XMLCh rangeEndStr[] = { static_cast<XMLCh>(rangeEnd), chNull }; 724 724 725 725 if (type == REGX_T_CHAR) { 726 726 … … 737 737 processNext(); 738 738 739 739 if (ch > rangeEnd) { 740 XMLCh chStr[] = { ch, chNull };740 XMLCh chStr[] = { static_cast<XMLCh>(ch), chNull }; 741 741 ThrowXMLwithMemMgr2(ParseException,XMLExcepts::Parser_Ope3, rangeEndStr, chStr, getMemoryManager()); 742 742 } 743 743 … … 845 845 break; 846 846 default: 847 847 { 848 XMLCh chString[] = {chBackSlash, ch, chNull};848 XMLCh chString[] = {chBackSlash, static_cast<XMLCh>(ch), chNull}; 849 849 ThrowXMLwithMemMgr1(ParseException,XMLExcepts::Parser_Process2, chString, getMemoryManager()); 850 850 } 851 851 }