Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

ThreadSearch-plugin uses cbMessageBox from inside thread

<< < (2/2)

dje:
Hi Jens !

I applied your patch.
A very big thanks, this bug was not an easy one !
I just changed

--- Code: ---int FindInFile(const wxString& filePath, wxArrayString &foundLines);
--- End code ---
by

--- Code: ---eFileSearcherReturn FindInFile(const wxString& filePath, wxArrayString &foundLines);
--- End code ---

Dje

Jenna:

--- Quote from: dje on February 07, 2008, 11:22:38 pm ---I just changed

--- Code: ---int FindInFile(const wxString& filePath, wxArrayString &foundLines);
--- End code ---
by

--- Code: ---eFileSearcherReturn FindInFile(const wxString& filePath, wxArrayString &foundLines);
--- End code ---

--- End quote ---

It is more readable and should be more type-safe (at least at compile-time) then a pure int.

Navigation

[0] Message Index

[*] Previous page

Go to full version