diff --git a/ChangeLog b/ChangeLog index 4366dc81..f5557143 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2019-08-25 Markus Gans + * More use of direct initializations + 2019-08-18 Markus Gans * Solved problem detecting terminal size on quick changes * Update VTerm information only in case of changes diff --git a/examples/7segment.cpp b/examples/7segment.cpp index b784c0cd..e7761fa5 100644 --- a/examples/7segment.cpp +++ b/examples/7segment.cpp @@ -136,7 +136,7 @@ void SegmentView::hexEncoding() //---------------------------------------------------------------------- void SegmentView::get7Segment (const wchar_t c) { - for (int i = 0; i < 3; i++) + for (int i{0}; i < 3; i++) line[i].clear(); switch ( c ) @@ -207,7 +207,7 @@ void SegmentView::draw() FColorPair color(fc::LightRed, fc::Black); get7Segment(ch); - for (std::size_t i = 0; i < 3; i++) + for (std::size_t i{0}; i < 3; i++) tbuffer[i] << color << line[i] << " "; } diff --git a/examples/calculator.cpp b/examples/calculator.cpp index af97ee2f..36d2f31d 100644 --- a/examples/calculator.cpp +++ b/examples/calculator.cpp @@ -35,7 +35,7 @@ using finalcut::FPoint; using finalcut::FSize; using finalcut::FColorPair; -constexpr lDouble PI = 3.141592653589793238L; +constexpr lDouble PI{3.141592653589793238L}; //---------------------------------------------------------------------- @@ -255,7 +255,7 @@ Calc::Calc (FWidget* parent) setText ("Calculator"); setGeometry (FPoint(19, 6), FSize(37, 18)); - for (std::size_t key = 0; key < Calc::NUM_OF_BUTTONS; key++) + for (std::size_t key{0}; key < Calc::NUM_OF_BUTTONS; key++) { auto btn = std::make_shared