Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: MortenMacFly on May 30, 2007, 08:26:43 AM

Title: [wxSmith]: 2 minor issues
Post by: MortenMacFly on May 30, 2007, 08:26:43 AM
Dear Byo,
2 minor issues I've  just discovered:
1.) wxscoder.cpp: Line 171 should read:
for ( size_t i=0; i<Content.Length(); i++ )
to avoid compiler warnings.
2.) wxscustombutton.cpp: Line 99:
Style.RemoveLast();
is not compatible with wx 2.6.x as there is no such method "RemoveLast()". Maybe you will guard this?
With regards, Morten.
Title: Re: [wxSmith]: 2 minor issues
Post by: byo on May 30, 2007, 10:40:26 AM
Quote from: MortenMacFly on May 30, 2007, 08:26:43 AM
Dear Byo,
2 minor issues I've  just discovered:
1.) wxscoder.cpp: Line 171 should read:
for ( size_t i=0; i<Content.Length(); i++ )
to avoid compiler warnings.

Right, that's correct.

Quote
2.) wxscustombutton.cpp: Line 99:
Style.RemoveLast();
is not compatible with wx 2.6.x as there is no such method "RemoveLast()". Maybe you will guard this?
With regards, Morten.

And can't agree with this, function exist in both 2.6.4 and 2.8.4 (I've checked docs and header files)

Regards
  BYO
Title: Re: [wxSmith]: 2 minor issues
Post by: MortenMacFly on May 30, 2007, 11:13:53 AM
Quote from: byo on May 30, 2007, 10:40:26 AM
And can't agree with this, function exist in both 2.6.4 and 2.8.4 (I've checked docs and header files)
Sorry Byo, my mistake. I meant: EndsWith() in line 97. The error is:

C:\Devel\CodeBlocks\src\plugins\contrib\wxSmithContribItems\wxthings\wxscustombutton.cpp:97: error: 'class wxString' has no member named 'EndsWith'

Sorry... ;-)
With regard, Morten.
Title: Re: [wxSmith]: 2 minor issues
Post by: byo on May 30, 2007, 07:47:50 PM
Quote from: MortenMacFly on May 30, 2007, 11:13:53 AM
Quote from: byo on May 30, 2007, 10:40:26 AM
And can't agree with this, function exist in both 2.6.4 and 2.8.4 (I've checked docs and header files)
Sorry Byo, my mistake. I meant: EndsWith() in line 97. The error is:

C:\Devel\CodeBlocks\src\plugins\contrib\wxSmithContribItems\wxthings\wxscustombutton.cpp:97: error: 'class wxString' has no member named 'EndsWith'

Sorry... ;-)
With regard, Morten.

Hmm, now you're right. But finally I had to remove EndsWith because this code was buggy (fixed version doesn't require EndsWith call).

Thanks for reporting :)

BYO