From 264f81453c7898c5b351e38a9a71934f39566016 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sat, 31 Aug 2024 22:21:41 +0800 Subject: [PATCH] update --- src/main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e9bb938..c2cc59d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,19 +3,17 @@ #include #include #include - -#include -using namespace std; +#include int main(int argc,char *argv[]){ - auto window = make_unique(500,300); - auto box = make_unique(20,40,260,100,"Hello world"); + auto window = std::make_unique(500,300); + auto box = std::make_unique(20,40,260,100,"Hello world"); box->box(FL_UP_BOX); box->labelsize(20); box->labelfont(FL_BOLD+FL_ITALIC); box->labeltype(FL_SHADOW_LABEL); - auto btn = make_unique(20,200,100,50,"btn"); + auto btn = std::make_unique(20,200,100,50,"btn"); btn->callback((Fl_Callback*)[](Fl_Widget *w,void *v)->void{ fl_alert("btn callback"); });