While compiling svn 7070, I obtain this compilation error :
||=== Code Snippets, Plugin - Win32 ===|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp||In member function 'bool CodeSnippets::GetTreeSelectionData(const wxTreeCtrl*, wxTreeItemId, wxString&)':|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp|968|error: operands to ?: have different types 'const wxString' and 'const wxChar*'|
||=== Génération terminée : 1 erreurs, 0 avertissements (4 minutes, 49 secondes) ===|
I use Win XP, SP3 and my compiler is TDM 4.5.1.
gd_on
Quote from: gd_on on March 26, 2011, 12:20:01 PM
||=== Code Snippets, Plugin - Win32 ===|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp||In member function 'bool CodeSnippets::GetTreeSelectionData(const wxTreeCtrl*, wxTreeItemId, wxString&)':|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp|968|error: operands to ?: have different types 'const wxString' and 'const wxChar*'|
||=== Génération terminée : 1 erreurs, 0 avertissements (4 minutes, 49 secondes) ===|
Is it resolved if you put a wxString() around wxEmptyString?
Alternatively, what about replacing wxEmptyString with wxT("")?
(I can't compile anything here for the moment...)
Hi,
both solutions are OK for me 8)
gd_on
Quote from: gd_on on March 26, 2011, 02:54:57 PM
both solutions are OK for me 8)
...and already committed.