Commit 1b4a44e5 authored by daniel_e's avatar daniel_e
Browse files

Use references rather than pointers for widgets we didn't new. That's my usual

policy actually.
parent b39e4e29
......@@ -76,9 +76,9 @@ PrefDialog::PrefDialog(Gtk::Window& parent)
add_button(Stock::CLOSE, RESPONSE_CLOSE);
Box *const box = get_vbox();
Box& box = *get_vbox();
Notebook *const notebook = new Notebook();
box->pack_start(*manage(notebook));
box.pack_start(*manage(notebook));
{
std::auto_ptr<Widget> label (new ImageLabel(Stock::PREFERENCES, "_Look'n'feel"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment