X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fentry.cpp;fp=source%2Fentry.cpp;h=b2c78004b233b6ad9243e781639a6756a417387e;hp=b212f5f6ecdf66a557ee614b37ca9cf0c1765089;hb=3ac64a18ea1825174b84adb8570368df51e66231;hpb=72de2dce79c76da9931e6bc80e59743526cc18fe diff --git a/source/entry.cpp b/source/entry.cpp index b212f5f..b2c7800 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -118,8 +118,9 @@ void Entry::set_multiline(bool m) { if(!slider) { - slider = new VSlider; - add(*slider); + unique_ptr s = make_unique(); + slider = s.get(); + add(move(s)); slider->set_step(1); slider->signal_value_changed.connect(sigc::mem_fun(this, &Entry::slider_value_changed)); mark_rebuild();