Skip to content
Snippets Groups Projects
Commit 6715a8f4 authored by bartvbl's avatar bartvbl
Browse files

Compiler fix

parent 0a541813
Branches
No related tags found
No related merge requests found
Pipeline #230034 passed
...@@ -22,8 +22,8 @@ For å vise hvordan man definerer og bruker en callback funksjon, fortsetter vi ...@@ -22,8 +22,8 @@ For å vise hvordan man definerer og bruker en callback funksjon, fortsetter vi
int main() int main()
{ {
const Point buttonPosition {100, 100}; const Point buttonPosition {100, 100};
const int buttonWidth = 100; const unsigned int buttonWidth = 100;
const int buttonHeight = 40; const unsigned int buttonHeight = 40;
const string buttonLabel = "Click me!"; const string buttonLabel = "Click me!";
Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};
...@@ -49,8 +49,8 @@ void callbackFunction() { ...@@ -49,8 +49,8 @@ void callbackFunction() {
int main() int main()
{ {
const Point buttonPosition {100, 100}; const Point buttonPosition {100, 100};
const int buttonWidth = 100; const unsigned int buttonWidth = 100;
const int buttonHeight = 40; const unsigned int buttonHeight = 40;
const string buttonLabel = "Click me!"; const string buttonLabel = "Click me!";
Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};
...@@ -76,8 +76,8 @@ void callbackFunction() { ...@@ -76,8 +76,8 @@ void callbackFunction() {
int main() int main()
{ {
const Point buttonPosition {100, 100}; const Point buttonPosition {100, 100};
const int buttonWidth = 100; const unsigned int buttonWidth = 100;
const int buttonHeight = 40; const unsigned int buttonHeight = 40;
const string buttonLabel = "Click me!"; const string buttonLabel = "Click me!";
Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};
...@@ -159,8 +159,8 @@ void buttonClicked() { ...@@ -159,8 +159,8 @@ void buttonClicked() {
int main() int main()
{ {
const Point buttonPosition {100, 100}; const Point buttonPosition {100, 100};
const int buttonWidth = 100; const unsigned int buttonWidth = 100;
const int buttonHeight = 40; const unsigned int buttonHeight = 40;
const string buttonLabel = "Click me!"; const string buttonLabel = "Click me!";
Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel}; Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment