From 61e43ca9f039073b16a87a9b61c8531f3ab82068 Mon Sep 17 00:00:00 2001 From: Zbigniew Zasieczny Date: Mon, 18 Jan 2021 09:56:26 +0100 Subject: [PATCH] Declaration order changed in Widget.h and WidgetMosaic.h to fix compilation error [-Werror=reorder] --- src/Widget.h | 2 +- src/WidgetMosaic.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Widget.h b/src/Widget.h index ab8e5f2..6646a2e 100644 --- a/src/Widget.h +++ b/src/Widget.h @@ -76,9 +76,9 @@ namespace Codingfield { virtual void OnSizeUpdated() { } virtual void OnPositionUpdated() { } + Widget* parent = nullptr; Point position; Size size; - Widget* parent = nullptr; std::vector children; bool isSelected = false; bool isVisible = true; diff --git a/src/WidgetMosaic.h b/src/WidgetMosaic.h index bddb63a..26806e2 100644 --- a/src/WidgetMosaic.h +++ b/src/WidgetMosaic.h @@ -21,8 +21,8 @@ namespace Codingfield { private: int32_t indexSelected = 0; int32_t border = 5; - int32_t nbRows; int32_t nbColumns; + int32_t nbRows; Size ComputeWidgetSize(); Size ComputeWidgetSize(int32_t nbColumns, int32_t nbRows);