needed for compilation with clang
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=3496&group_id=5358
old
|
new
|
int CBProfiler::Execute() |
101 | 101 | if (project->GetBuildTargetsCount() > 1) |
102 | 102 | { |
103 | 103 | // more than one executable target? ask... |
104 | | wxString choices[project->GetBuildTargetsCount()]; |
| 104 | wxString *choices = new wxString[project->GetBuildTargetsCount()]; |
105 | 105 | wxString active_target = project->GetActiveBuildTarget(); |
106 | 106 | int selected = 0; |
107 | 107 | for (int i=0; i<project->GetBuildTargetsCount(); ++i) |
… |
… |
int CBProfiler::Execute() |
114 | 114 | _("Select the target you want to profile"), |
115 | 115 | _("Select Target"),project->GetBuildTargetsCount(),choices); |
116 | 116 | dialog.SetSelection(selected); |
| 117 | delete [] choices; |
117 | 118 | if (dialog.ShowModal() != wxID_OK) |
118 | 119 | return -1; |
119 | 120 | int targetIndex = dialog.GetSelection(); |