Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: mmkider on November 28, 2008, 04:08:26 pm

Title: patch for codecomplete plugin(bug)
Post by: mmkider on November 28, 2008, 04:08:26 pm
Code
Index: nativeparser.cpp
===================================================================
--- nativeparser.cpp (revision 5323)
+++ nativeparser.cpp (working copy)
@@ -1136,8 +1136,8 @@
             --x;
 
         if (x > 0 &&
-            (line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
-            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':'))
+            ((line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
+            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':')))
         {
             x -= 2;
             repeat = true;

look it. 
it lose '(' and ')'

:lol:
Title: Re: patch for codecomplete plugin(bug)
Post by: DrewBoo on December 05, 2008, 05:54:01 pm
Code
Index: nativeparser.cpp
===================================================================
--- nativeparser.cpp (revision 5323)
+++ nativeparser.cpp (working copy)
@@ -1136,8 +1136,8 @@
             --x;
 
         if (x > 0 &&
-            (line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
-            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':'))
+            ((line.GetChar(x) == '>' && line.GetChar(x - 1) == '-') ||
+            (line.GetChar(x) == ':' && line.GetChar(x - 1) == ':')))
         {
             x -= 2;
             repeat = true;

look it. 
it lose '(' and ')'

:lol:


Yep.  Looks like a typo to me.