Author Topic: Possible wxWidgets 3.2 patch fix for codecompletion  (Read 40 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7840
Problem noticed using today's SVN under MSys2 MINGW64 wxWidgets version 3.2.11-1

Skipped building contrib debugger plugin because it also had an wxWidgets 3.2 build error.

Tim S.

Code
Index: src/plugins/codecompletion/doxygen_parser.cpp
===================================================================
--- src/plugins/codecompletion/doxygen_parser.cpp (revision 14040)
+++ src/plugins/codecompletion/doxygen_parser.cpp (working copy)
@@ -208,7 +208,7 @@
 
         if (m_Pos + kwLen < (int)doc.size())
         {
-            if ( !IsOneOf(doc[m_Pos + kwLen], wxString(" \t\n")) )
+            if ( !IsOneOf(doc[m_Pos + kwLen], wxS(" \t\n")) )
                 return NO_KEYWORD;
         }
 
@@ -361,7 +361,7 @@
             return false;
         ++m_Pos;
 
-        while (!IsEnd(doc) && IsOneOf(doc[m_Pos], wxString(" \t*/")) )
+        while (!IsEnd(doc) && IsOneOf(doc[m_Pos], wxS(" \t*/")) )
             ++m_Pos;
 
         return true;
Index: src/plugins/codecompletion/parser/tokenizer.cpp
===================================================================
--- src/plugins/codecompletion/parser/tokenizer.cpp (revision 14040)
+++ src/plugins/codecompletion/parser/tokenizer.cpp (working copy)
@@ -1042,7 +1042,7 @@
     else if (wxIsdigit(c))
     {
         // numbers
-        while (NotEOF() && CharInString(CurrentChar(), wxString("0123456789.abcdefABCDEFXxLl") ))
+        while (NotEOF() && CharInString(CurrentChar(), wxS("0123456789.abcdefABCDEFXxLl") ))
             MoveToNextChar();
 
         if (IsEOF())
C Programmer working to learn more about C++.
On Windows 11 64 bit using MSys2 UCRT64.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org