732bf0343e
- Add LICENSE_FILE - Drop unneeded WX_UNICODE - Regenerate patches with `make makepatch`
25 lines
700 B
C++
25 lines
700 B
C++
--- src/gtimelapse.cpp.orig 2009-06-08 12:13:59 UTC
|
|
+++ src/gtimelapse.cpp
|
|
@@ -155,7 +155,11 @@ wxPanel *display_widgets (wxPanel *panel
|
|
//cout << "type: RADIO" << endl;
|
|
//cout << "current: " << current << endl;
|
|
|
|
+#ifdef __clang__
|
|
+ wxString *choices = new wxString[cnt];
|
|
+#else
|
|
wxString choices[cnt];
|
|
+#endif
|
|
|
|
for ( i=0; i<cnt; i++) {
|
|
const char *choice;
|
|
@@ -165,6 +169,10 @@ wxPanel *display_widgets (wxPanel *panel
|
|
choices[i] = mystring;
|
|
}
|
|
|
|
+#ifdef __clang__
|
|
+ delete [] choices;
|
|
+#endif
|
|
+
|
|
wxString title(label, wxConvUTF8);
|
|
wxString default_choice(current, wxConvUTF8);
|
|
wxString choice_label(uselabel, wxConvUTF8);
|