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

Compiler fix

parent 0a541813
No related branches found
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
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};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment