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"); });