fix some warnings (#660)

Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
Prokop Randáček
2023-06-03 13:59:39 +02:00
committed by ArthurSonzogni
parent f64e1e128e
commit 1651ae56ca
71 changed files with 75 additions and 75 deletions

View File

@@ -12,7 +12,7 @@
using namespace ftxui;
int main(int argc, const char* argv[]) {
int main() {
auto screen = ScreenInteractive::TerminalOutput();
std::array<int, 30> values;
for (int i = 0; i < values.size(); ++i) {
@@ -20,10 +20,10 @@ int main(int argc, const char* argv[]) {
}
auto layout_horizontal = Container::Horizontal({});
for (int i = 0; i < values.size(); ++i) {
for (auto& value : values) {
// In C++17:
SliderOption<int> option;
option.value = &values[i];
option.value = &value;
option.max = 100;
option.increment = 5;
option.direction = GaugeDirection::Up;