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 GitHub
parent d464a071da
commit 59bbe3ed5e
73 changed files with 77 additions and 77 deletions

View File

@@ -13,7 +13,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) {
@@ -21,10 +21,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 = Direction::Up;