| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/gtimelapse/files/ |
Upload File : |
--- src/gtimelapse.cpp.orig 2009-06-08 12:13:59 UTC
+++ src/gtimelapse.cpp
@@ -155,7 +155,11 @@ wxPanel *display_widgets (wxPanel *panel, CameraWidget
//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, CameraWidget
choices[i] = mystring;
}
+#ifdef __clang__
+ delete [] choices;
+#endif
+
wxString title(label, wxConvUTF8);
wxString default_choice(current, wxConvUTF8);
wxString choice_label(uselabel, wxConvUTF8);
@@ -742,9 +750,9 @@ void MyFrame::StartCapture(wxCommandEvent& event){
button2->Disable();
button4->Enable();
- thread = CreateThread();
+ ::thread = CreateThread();
- if ( thread->Run() != wxTHREAD_NO_ERROR ){
+ if ( ::thread->Run() != wxTHREAD_NO_ERROR ){
wxLogError(wxT("Can't start thread!"));
}else{
//cout << "Thread started." << endl;