News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[wxSmith]: 2 minor issues

Started by MortenMacFly, May 30, 2007, 08:26:43 AM

Previous topic - Next topic

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

byo

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

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

byo

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