From 6715a8f474014d8de1a74d02b972ccde5f03250f Mon Sep 17 00:00:00 2001 From: bartvbl <bartvblokl@gmail.com> Date: Sun, 21 May 2023 13:23:43 +0200 Subject: [PATCH] Compiler fix --- docs/animationwindow/gui.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/animationwindow/gui.md b/docs/animationwindow/gui.md index fec18af..c6dbac2 100644 --- a/docs/animationwindow/gui.md +++ b/docs/animationwindow/gui.md @@ -22,8 +22,8 @@ For å vise hvordan man definerer og bruker en callback funksjon, fortsetter vi int main() { const Point buttonPosition {100, 100}; - const int buttonWidth = 100; - const int buttonHeight = 40; + const unsigned int buttonWidth = 100; + const unsigned int buttonHeight = 40; const string buttonLabel = "Click me!"; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; @@ -49,8 +49,8 @@ void callbackFunction() { int main() { const Point buttonPosition {100, 100}; - const int buttonWidth = 100; - const int buttonHeight = 40; + const unsigned int buttonWidth = 100; + const unsigned int buttonHeight = 40; const string buttonLabel = "Click me!"; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; @@ -76,8 +76,8 @@ void callbackFunction() { int main() { const Point buttonPosition {100, 100}; - const int buttonWidth = 100; - const int buttonHeight = 40; + const unsigned int buttonWidth = 100; + const unsigned int buttonHeight = 40; const string buttonLabel = "Click me!"; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; @@ -159,8 +159,8 @@ void buttonClicked() { int main() { const Point buttonPosition {100, 100}; - const int buttonWidth = 100; - const int buttonHeight = 40; + const unsigned int buttonWidth = 100; + const unsigned int buttonHeight = 40; const string buttonLabel = "Click me!"; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; -- GitLab