mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 09:57:44 +01:00
'gtk2_ardour' - Use 'std::vector' to implement an array whose size is unknown (required to be buildable with MSVC)
This commit is contained in:
parent
f8574fc39d
commit
d7a16f7de6
3 changed files with 15 additions and 12 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <cerrno>
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "pbd/stl_delete.h"
|
||||
#include "pbd/xml++.h"
|
||||
|
|
@ -309,9 +310,9 @@ GenericPluginUI::build ()
|
|||
// are similar enough to be grouped together.
|
||||
|
||||
string label, previous_label = "";
|
||||
int numbers_in_labels[cui_controls_list.size()];
|
||||
std::vector<int> numbers_in_labels(cui_controls_list.size());
|
||||
|
||||
float similarity_scores[cui_controls_list.size()];
|
||||
std::vector<float> similarity_scores(cui_controls_list.size());
|
||||
float most_similar = 0.0, least_similar = 1.0;
|
||||
|
||||
i = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue