[gtkmm] C++11: Some use of auto.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] C++11: Some use of auto.
- Date: Thu, 16 Jul 2015 20:07:27 +0000 (UTC)
commit c52ebe86d1173e7a9845f3dd0acee9f69bbb7692
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jul 16 20:31:37 2015 +0200
C++11: Some use of auto.
gtk/src/assistant.ccg | 2 +-
gtk/src/calendar.ccg | 2 +-
gtk/src/celllayout.ccg | 2 +-
gtk/src/clipboard.ccg | 14 +++++++-------
gtk/src/combobox.ccg | 2 +-
gtk/src/entrycompletion.ccg | 2 +-
gtk/src/filefilter.ccg | 2 +-
gtk/src/flowbox.ccg | 4 ++--
gtk/src/fontchooser.ccg | 2 +-
gtk/src/iconinfo.ccg | 12 ++++++------
gtk/src/imagemenuitem.ccg | 2 +-
gtk/src/listbox.ccg | 6 +++---
gtk/src/menu.ccg | 4 ++--
gtk/src/printer.ccg | 2 +-
gtk/src/printjob.ccg | 2 +-
gtk/src/printoperation.ccg | 4 ++--
gtk/src/recentchooser.ccg | 2 +-
gtk/src/recentfilter.ccg | 2 +-
gtk/src/textbuffer.ccg | 4 ++--
gtk/src/treemodelfilter.ccg | 4 ++--
gtk/src/treeselection.ccg | 2 +-
gtk/src/treesortable.ccg | 4 ++--
gtk/src/treeview.ccg | 10 +++++-----
gtk/src/treeviewcolumn.ccg | 2 +-
24 files changed, 47 insertions(+), 47 deletions(-)
---
diff --git a/gtk/src/assistant.ccg b/gtk/src/assistant.ccg
index d7811fa..14c691c 100644
--- a/gtk/src/assistant.ccg
+++ b/gtk/src/assistant.ccg
@@ -49,7 +49,7 @@ void Assistant::set_forward_page_func(const SlotForwardPage& slot)
// Create a copy of the slot object. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_SlotForwardPage_gtk_callback_destroy() is called.
- SlotForwardPage* slot_copy = new SlotForwardPage(slot);
+ auto slot_copy = new SlotForwardPage(slot);
gtk_assistant_set_forward_page_func(gobj(),
&SignalProxy_SlotForwardPage_gtk_callback, slot_copy,
diff --git a/gtk/src/calendar.ccg b/gtk/src/calendar.ccg
index 2091e8e..e04f067 100644
--- a/gtk/src/calendar.ccg
+++ b/gtk/src/calendar.ccg
@@ -65,7 +65,7 @@ void Calendar::get_date(Glib::Date& date) const
void Calendar::set_detail_func(const SlotDetails& slot)
{
- SlotDetails* slot_copy = new SlotDetails(slot);
+ auto slot_copy = new SlotDetails(slot);
gtk_calendar_set_detail_func(gobj(), &SignalProxy_Details_gtk_callback, slot_copy,
&SignalProxy_Details_gtk_callback_destroy);
}
diff --git a/gtk/src/celllayout.ccg b/gtk/src/celllayout.ccg
index 5f029ca..4510d2a 100644
--- a/gtk/src/celllayout.ccg
+++ b/gtk/src/celllayout.ccg
@@ -62,7 +62,7 @@ void CellLayout::set_cell_data_func(CellRenderer& cell, const SlotCellData& slot
// Create a copy of the slot object. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_CellData_gtk_callback_destroy() is called.
- SlotCellData* slot_copy = new SlotCellData(slot);
+ auto slot_copy = new SlotCellData(slot);
gtk_cell_layout_set_cell_data_func(gobj(), cell.gobj(),
&SignalProxy_CellData_gtk_callback, slot_copy,
diff --git a/gtk/src/clipboard.ccg b/gtk/src/clipboard.ccg
index baebc22..69d9fb7 100644
--- a/gtk/src/clipboard.ccg
+++ b/gtk/src/clipboard.ccg
@@ -201,7 +201,7 @@ bool Clipboard::set(const std::vector<TargetEntry>& targets,
const SlotGet& slot_get, const SlotClear& slot_clear)
{
// Create a signal proxy. A pointer to this will be passed through the callback's data parameter.
- SignalProxy_GetClear *const pSignalProxy = new SignalProxy_GetClear(slot_get, slot_clear);
+ const auto pSignalProxy = new SignalProxy_GetClear(slot_get, slot_clear);
return gtk_clipboard_set_with_data(
gobj(),
@@ -221,7 +221,7 @@ void Clipboard::set_text(const Glib::ustring& text)
void Clipboard::request_contents(const Glib::ustring& target, const SlotReceived& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
- SlotReceived* slot_copy = new SlotReceived(slot);
+ auto slot_copy = new SlotReceived(slot);
gtk_clipboard_request_contents(gobj(), gdk_atom_intern(target.c_str(), FALSE),
&SignalProxy_Received_gtk_callback, slot_copy);
@@ -230,7 +230,7 @@ void Clipboard::request_contents(const Glib::ustring& target, const SlotReceived
void Clipboard::request_text(const SlotTextReceived& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
- SlotTextReceived* slot_copy = new SlotTextReceived(slot);
+ auto slot_copy = new SlotTextReceived(slot);
gtk_clipboard_request_text(gobj(),
&SignalProxy_TextReceived_gtk_callback, slot_copy);
@@ -239,7 +239,7 @@ void Clipboard::request_text(const SlotTextReceived& slot)
void Clipboard::request_rich_text(const Glib::RefPtr<TextBuffer>& buffer, const SlotRichTextReceived& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
- SlotRichTextReceived* slot_copy = new SlotRichTextReceived(slot);
+ auto slot_copy = new SlotRichTextReceived(slot);
gtk_clipboard_request_rich_text(gobj(), buffer->gobj(),
&SignalProxy_RichTextReceived_gtk_callback, slot_copy);
@@ -248,7 +248,7 @@ void Clipboard::request_rich_text(const Glib::RefPtr<TextBuffer>& buffer, const
void Clipboard::request_uris(const SlotUrisReceived& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
- SlotUrisReceived* slot_copy = new SlotUrisReceived(slot);
+ auto slot_copy = new SlotUrisReceived(slot);
gtk_clipboard_request_uris(gobj(), &SignalProxy_UrisReceived_gtk_callback, slot_copy);
}
@@ -256,7 +256,7 @@ void Clipboard::request_uris(const SlotUrisReceived& slot)
void Clipboard::request_image(const SlotImageReceived& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
- SlotImageReceived* slot_copy = new SlotImageReceived(slot);
+ auto slot_copy = new SlotImageReceived(slot);
gtk_clipboard_request_image(gobj(),
&SignalProxy_ImageReceived_gtk_callback, slot_copy);
@@ -265,7 +265,7 @@ void Clipboard::request_image(const SlotImageReceived& slot)
void Clipboard::request_targets(const SlotTargetsReceived& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
- SlotTargetsReceived* slot_copy = new SlotTargetsReceived(slot);
+ auto slot_copy = new SlotTargetsReceived(slot);
gtk_clipboard_request_targets(gobj(), &SignalProxy_TargetsReceived_gtk_callback, slot_copy);
}
diff --git a/gtk/src/combobox.ccg b/gtk/src/combobox.ccg
index 857eeae..3884ae8 100644
--- a/gtk/src/combobox.ccg
+++ b/gtk/src/combobox.ccg
@@ -87,7 +87,7 @@ void ComboBox::set_row_separator_func(const SlotRowSeparator& slot)
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when SignalProxy_RowSeparator_gtk_callback_destroy() is called.
- SlotRowSeparator* slot_copy = new SlotRowSeparator(slot);
+ auto slot_copy = new SlotRowSeparator(slot);
gtk_combo_box_set_row_separator_func(gobj(),
&TreeView_Private::SignalProxy_RowSeparator_gtk_callback, slot_copy,
diff --git a/gtk/src/entrycompletion.ccg b/gtk/src/entrycompletion.ccg
index 2f1583c..954e45e 100644
--- a/gtk/src/entrycompletion.ccg
+++ b/gtk/src/entrycompletion.ccg
@@ -58,7 +58,7 @@ void EntryCompletion::set_match_func(const SlotMatch& slot)
// Create a copy of the slot. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Match_gtk_callback_destroy() is called.
- SlotMatch* slot_copy = new SlotMatch(slot);
+ auto slot_copy = new SlotMatch(slot);
gtk_entry_completion_set_match_func(gobj(),
&SignalProxy_Match_gtk_callback, slot_copy,
diff --git a/gtk/src/filefilter.ccg b/gtk/src/filefilter.ccg
index 0f1e9c3..804a0b2 100644
--- a/gtk/src/filefilter.ccg
+++ b/gtk/src/filefilter.ccg
@@ -53,7 +53,7 @@ void FileFilter::add_custom(FileFilterFlags needed, const SlotCustom& slot)
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when SignalProxy_Custom::gtk_callback_destroy() is called.
- SlotCustom* slot_copy = new SlotCustom(slot);
+ auto slot_copy = new SlotCustom(slot);
gtk_file_filter_add_custom(gobj(), (GtkFileFilterFlags)needed,
&SignalProxy_Custom_gtk_callback,
diff --git a/gtk/src/flowbox.ccg b/gtk/src/flowbox.ccg
index 06301fb..ff88be6 100644
--- a/gtk/src/flowbox.ccg
+++ b/gtk/src/flowbox.ccg
@@ -92,7 +92,7 @@ void FlowBox::set_filter_func(const SlotFilter& slot)
// Create a copy of the slot object. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Filter_gtk_callback_destroy() is called.
- SlotFilter* slot_copy = new SlotFilter(slot);
+ auto slot_copy = new SlotFilter(slot);
gtk_flow_box_set_filter_func(gobj(),
&SignalProxy_Filter_gtk_callback, slot_copy,
@@ -109,7 +109,7 @@ void FlowBox::set_sort_func(const SlotSort& slot)
// Create a copy of the slot object. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Sort_gtk_callback_destroy() is called.
- SlotSort* slot_copy = new SlotSort(slot);
+ auto slot_copy = new SlotSort(slot);
gtk_flow_box_set_sort_func(gobj(),
&SignalProxy_Sort_gtk_callback, slot_copy,
diff --git a/gtk/src/fontchooser.ccg b/gtk/src/fontchooser.ccg
index be833e9..33759d0 100644
--- a/gtk/src/fontchooser.ccg
+++ b/gtk/src/fontchooser.ccg
@@ -54,7 +54,7 @@ namespace Gtk
void FontChooser::set_filter_func(const SlotFontFilter& slot)
{
- SlotFontFilter* slot_copy = new SlotFontFilter(slot);
+ auto slot_copy = new SlotFontFilter(slot);
gtk_font_chooser_set_filter_func(gobj(), &SignalProxy_Filter_gtk_callback, slot_copy,
&SignalProxy_Filter_gtk_callback_destroy);
}
diff --git a/gtk/src/iconinfo.ccg b/gtk/src/iconinfo.ccg
index 1ecda87..c16d4f8 100644
--- a/gtk/src/iconinfo.ccg
+++ b/gtk/src/iconinfo.ccg
@@ -127,7 +127,7 @@ void IconInfo::load_icon_async(const Gio::SlotAsyncReady& slot, const Glib::RefP
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
- Gio::SlotAsyncReady* slot_copy = new Gio::SlotAsyncReady(slot);
+ auto slot_copy = new Gio::SlotAsyncReady(slot);
gtk_icon_info_load_icon_async(gobj(),
Glib::unwrap(cancellable),
@@ -140,7 +140,7 @@ void IconInfo::load_icon_async(const Gio::SlotAsyncReady& slot)
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
- Gio::SlotAsyncReady* slot_copy = new Gio::SlotAsyncReady(slot);
+ auto slot_copy = new Gio::SlotAsyncReady(slot);
gtk_icon_info_load_icon_async(gobj(),
0,
@@ -154,7 +154,7 @@ void IconInfo::load_symbolic_async(const Gdk::RGBA& fg, const Gdk::RGBA& success
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
- Gio::SlotAsyncReady* slot_copy = new Gio::SlotAsyncReady(slot);
+ auto slot_copy = new Gio::SlotAsyncReady(slot);
gtk_icon_info_load_symbolic_async(gobj(),
fg.gobj(),
@@ -171,7 +171,7 @@ void IconInfo::load_symbolic_async(const Gdk::RGBA& fg, const Gdk::RGBA& success
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
- Gio::SlotAsyncReady* slot_copy = new Gio::SlotAsyncReady(slot);
+ auto slot_copy = new Gio::SlotAsyncReady(slot);
gtk_icon_info_load_symbolic_async(gobj(),
fg.gobj(),
@@ -189,7 +189,7 @@ void IconInfo::load_symbolic_for_context_async(const Glib::RefPtr<StyleContext>&
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
- Gio::SlotAsyncReady* slot_copy = new Gio::SlotAsyncReady(slot);
+ auto slot_copy = new Gio::SlotAsyncReady(slot);
gtk_icon_info_load_symbolic_for_context_async(gobj(),
Glib::unwrap(context),
@@ -203,7 +203,7 @@ void IconInfo::load_symbolic_for_context_async(const Glib::RefPtr<StyleContext>&
// Create a copy of the slot.
// A pointer to it will be passed through the callback's data parameter
// and deleted in the callback.
- Gio::SlotAsyncReady* slot_copy = new Gio::SlotAsyncReady(slot);
+ auto slot_copy = new Gio::SlotAsyncReady(slot);
gtk_icon_info_load_symbolic_for_context_async(gobj(),
Glib::unwrap(context),
diff --git a/gtk/src/imagemenuitem.ccg b/gtk/src/imagemenuitem.ccg
index 2ee2737..20c51bc 100644
--- a/gtk/src/imagemenuitem.ccg
+++ b/gtk/src/imagemenuitem.ccg
@@ -45,7 +45,7 @@ ImageMenuItem::ImageMenuItem(const Gtk::StockID& stock_id)
:
_CONSTRUCT()
{
- Gtk::Image* image = new Gtk::Image(stock_id, ICON_SIZE_MENU);
+ auto image = new Gtk::Image(stock_id, ICON_SIZE_MENU);
image->show();
set_image( *(Gtk::manage(image)) );
diff --git a/gtk/src/listbox.ccg b/gtk/src/listbox.ccg
index 4e46265..4311522 100644
--- a/gtk/src/listbox.ccg
+++ b/gtk/src/listbox.ccg
@@ -116,7 +116,7 @@ void ListBox::set_filter_func(const SlotFilter& slot)
// Create a copy of the slot object. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Filter_gtk_callback_destroy() is called.
- SlotFilter* slot_copy = new SlotFilter(slot);
+ auto slot_copy = new SlotFilter(slot);
gtk_list_box_set_filter_func(gobj(),
&SignalProxy_Filter_gtk_callback, slot_copy,
@@ -133,7 +133,7 @@ void ListBox::set_sort_func(const SlotSort& slot)
// Create a copy of the slot object. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Sort_gtk_callback_destroy() is called.
- SlotSort* slot_copy = new SlotSort(slot);
+ auto slot_copy = new SlotSort(slot);
gtk_list_box_set_sort_func(gobj(),
&SignalProxy_Sort_gtk_callback, slot_copy,
@@ -150,7 +150,7 @@ void ListBox::set_header_func(const SlotUpdateHeader& slot)
// Create a copy of the slot object. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Sort_gtk_callback_destroy() is called.
- SlotUpdateHeader* slot_copy = new SlotUpdateHeader(slot);
+ auto slot_copy = new SlotUpdateHeader(slot);
gtk_list_box_set_header_func(gobj(),
&SignalProxy_UpdateHeader_gtk_callback, slot_copy,
diff --git a/gtk/src/menu.ccg b/gtk/src/menu.ccg
index cee9fc5..f43d8fc 100644
--- a/gtk/src/menu.ccg
+++ b/gtk/src/menu.ccg
@@ -69,7 +69,7 @@ void Menu::popup(const SlotPositionCalc& position_calc_slot, guint button, guint
gtk_menu_popup(gobj(), 0, 0, &SignalProxy_PopupPosition_gtk_callback,
const_cast<SlotPositionCalc*>(&position_calc_slot), button, activate_time);
else
{
- SlotPositionCalc* slot_copy = new SlotPositionCalc(position_calc_slot); //Deleted in the destroy
callback.
+ auto slot_copy = new SlotPositionCalc(position_calc_slot); //Deleted in the destroy callback.
gtk_menu_popup_for_device(gobj(), device->gobj(), 0, 0, &SignalProxy_PopupPosition_gtk_callback,
slot_copy, &SignalProxy_PopupPosition_gtk_callback_destroy, button, activate_time);
}
@@ -83,7 +83,7 @@ void Menu::popup(MenuShell& parent_menu_shell, MenuItem& parent_menu_item, const
gtk_menu_popup(gobj(), parent_menu_shell.Gtk::Widget::gobj(), parent_menu_item.Gtk::Widget::gobj(),
&SignalProxy_PopupPosition_gtk_callback, const_cast<SlotPositionCalc*>(&position_calc_slot), button,
activate_time);
else
{
- SlotPositionCalc* slot_copy = new SlotPositionCalc(position_calc_slot); //Deleted in the destroy
callback.
+ auto slot_copy = new SlotPositionCalc(position_calc_slot); //Deleted in the destroy callback.
gtk_menu_popup_for_device(gobj(), device->gobj(), parent_menu_shell.Gtk::Widget::gobj(),
parent_menu_item.Gtk::Widget::gobj(), &SignalProxy_PopupPosition_gtk_callback, slot_copy,
&SignalProxy_PopupPosition_gtk_callback_destroy, button, activate_time);
}
diff --git a/gtk/src/printer.ccg b/gtk/src/printer.ccg
index a1c27cd..5c6a62d 100644
--- a/gtk/src/printer.ccg
+++ b/gtk/src/printer.ccg
@@ -57,7 +57,7 @@ void enumerate_printers(const SlotPrinterEnumerator& slot, bool wait)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
// It will be deleted when SignalProxy_Custom_gtk_callback_destroy() is called.
- SlotPrinterEnumerator* slot_copy = new SlotPrinterEnumerator(slot);
+ auto slot_copy = new SlotPrinterEnumerator(slot);
gtk_enumerate_printers(&SignalProxy_Custom_gtk_callback,
slot_copy,
diff --git a/gtk/src/printjob.ccg b/gtk/src/printjob.ccg
index 2263faa..6f4baaf 100644
--- a/gtk/src/printjob.ccg
+++ b/gtk/src/printjob.ccg
@@ -51,7 +51,7 @@ void PrintJob::send(const SlotPrintJobComplete& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
// It will be deleted when SignalProxy_Custom_gtk_callback_destroy() is called.
- SlotPrintJobComplete* slot_copy = new SlotPrintJobComplete(slot);
+ auto slot_copy = new SlotPrintJobComplete(slot);
gtk_print_job_send(gobj(), &SignalProxy_Custom_gtk_callback, slot_copy,
&SignalProxy_Custom_gtk_callback_destroy);
}
diff --git a/gtk/src/printoperation.ccg b/gtk/src/printoperation.ccg
index b93e789..65d85e1 100644
--- a/gtk/src/printoperation.ccg
+++ b/gtk/src/printoperation.ccg
@@ -95,7 +95,7 @@ run_page_setup_dialog_async(Window& parent,
const Glib::RefPtr<const PrintSettings>& print_settings,
const SlotPrintSetupDone& slot)
{
- SlotPrintSetupDone* slot_copy = new SlotPrintSetupDone(slot);
+ auto slot_copy = new SlotPrintSetupDone(slot);
// Specify the exact type with template specialization, to avoid possible
// ambiguities between the const and non-const versions of unwrap() reported
@@ -114,7 +114,7 @@ run_page_setup_dialog_async(Window& parent,
const Glib::RefPtr<const PrintSettings>& print_settings,
const SlotPrintSetupDone& slot)
{
- SlotPrintSetupDone* slot_copy = new SlotPrintSetupDone(slot);
+ auto slot_copy = new SlotPrintSetupDone(slot);
// Specify the exact type with template specialization, to avoid possible
// ambiguities between the const and non-const versions of unwrap() reported
diff --git a/gtk/src/recentchooser.ccg b/gtk/src/recentchooser.ccg
index 931d0b6..3c908fc 100644
--- a/gtk/src/recentchooser.ccg
+++ b/gtk/src/recentchooser.ccg
@@ -48,7 +48,7 @@ namespace Gtk
void RecentChooser::set_sort_func(const SlotCompare& slot)
{
- SlotCompare* slot_copy = new SlotCompare(slot);
+ auto slot_copy = new SlotCompare(slot);
gtk_recent_chooser_set_sort_func(
gobj(),
diff --git a/gtk/src/recentfilter.ccg b/gtk/src/recentfilter.ccg
index 8beb2af..02dfcf0 100644
--- a/gtk/src/recentfilter.ccg
+++ b/gtk/src/recentfilter.ccg
@@ -74,7 +74,7 @@ void RecentFilter::add_custom(RecentFilterFlags needed, const SlotCustom& slot)
{
// Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
// It will be deleted when SignalProxy_Custom_gtk_callback_destroy() is called.
- SlotCustom* slot_copy = new SlotCustom(slot);
+ auto slot_copy = new SlotCustom(slot);
gtk_recent_filter_add_custom(gobj(), (GtkRecentFilterFlags)needed,
&SignalProxy_Custom_gtk_callback,
diff --git a/gtk/src/textbuffer.ccg b/gtk/src/textbuffer.ccg
index 0a2e93e..fc6206f 100644
--- a/gtk/src/textbuffer.ccg
+++ b/gtk/src/textbuffer.ccg
@@ -543,7 +543,7 @@ std::vector<Glib::ustring> TextBuffer::get_deserialize_formats() const
Glib::ustring TextBuffer::register_serialize_format(const Glib::ustring& mime_type, const SlotSerialize&
slot)
{
- SlotSerialize* slot_copy = new SlotSerialize(slot);
+ auto slot_copy = new SlotSerialize(slot);
GdkAtom atom = gtk_text_buffer_register_serialize_format(gobj(), mime_type.c_str(),
&SignalProxy_Serialize, slot_copy, &SignalProxy_Serialize_gtk_callback_destroy);
@@ -561,7 +561,7 @@ Glib::ustring TextBuffer::register_serialize_format(const Glib::ustring& mime_ty
Glib::ustring TextBuffer::register_deserialize_format(const Glib::ustring& mime_type, const SlotDeserialize&
slot)
{
- SlotDeserialize* slot_copy = new SlotDeserialize(slot);
+ auto slot_copy = new SlotDeserialize(slot);
GdkAtom atom = gtk_text_buffer_register_deserialize_format(gobj(), mime_type.c_str(),
&SignalProxy_Deserialize, slot_copy, &SignalProxy_Deserialize_gtk_callback_destroy);
diff --git a/gtk/src/treemodelfilter.ccg b/gtk/src/treemodelfilter.ccg
index 43f3d1f..69186f6 100644
--- a/gtk/src/treemodelfilter.ccg
+++ b/gtk/src/treemodelfilter.ccg
@@ -95,7 +95,7 @@ void TreeModelFilter::set_visible_func(const SlotVisible& slot)
// Create a copy of the slot. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Visible_gtk_callback_destroy() is called.
- SlotVisible* slot_copy = new SlotVisible(slot);
+ auto slot_copy = new SlotVisible(slot);
gtk_tree_model_filter_set_visible_func(gobj(),
&SignalProxy_Visible_gtk_callback, slot_copy,
@@ -132,7 +132,7 @@ void TreeModelFilter::set_modify_func(const TreeModelColumnRecord& columns, cons
// Create a copy of the slot. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Modify_gtk_callback_destroy() is called.
- SlotModify* slot_copy = new SlotModify(slot);
+ auto slot_copy = new SlotModify(slot);
gtk_tree_model_filter_set_modify_func(gobj(),
columns.size(), const_cast<GType*>(columns.types()),
diff --git a/gtk/src/treeselection.ccg b/gtk/src/treeselection.ccg
index 23b7917..ecc8d91 100644
--- a/gtk/src/treeselection.ccg
+++ b/gtk/src/treeselection.ccg
@@ -101,7 +101,7 @@ void TreeSelection::set_select_function(const SlotSelect& slot)
// Create a copy of the slot. A pointer to this will be passed
// through the callback's data parameter. It will be deleted
// when SignalProxy_Select_gtk_callback_destroy() is called.
- SlotSelect* slot_copy = new SlotSelect(slot);
+ auto slot_copy = new SlotSelect(slot);
gtk_tree_selection_set_select_function(gobj(),
&SignalProxy_Select_gtk_callback, slot_copy,
diff --git a/gtk/src/treesortable.ccg b/gtk/src/treesortable.ccg
index a42cfc4..ffb8404 100644
--- a/gtk/src/treesortable.ccg
+++ b/gtk/src/treesortable.ccg
@@ -42,7 +42,7 @@ namespace Gtk
void TreeSortable::set_sort_func(int sort_column_id, const SlotCompare& slot)
{
- SlotCompare* slot_copy = new SlotCompare(slot);
+ auto slot_copy = new SlotCompare(slot);
gtk_tree_sortable_set_sort_func(
gobj(), sort_column_id,
@@ -57,7 +57,7 @@ void TreeSortable::set_sort_func(const Gtk::TreeModelColumnBase& sort_column, co
void TreeSortable::set_default_sort_func(const SlotCompare& slot)
{
- SlotCompare* slot_copy = new SlotCompare(slot);
+ auto slot_copy = new SlotCompare(slot);
gtk_tree_sortable_set_default_sort_func(
gobj(),
diff --git a/gtk/src/treeview.ccg b/gtk/src/treeview.ccg
index 19f634d..1f7eefb 100644
--- a/gtk/src/treeview.ccg
+++ b/gtk/src/treeview.ccg
@@ -121,7 +121,7 @@ int TreeView::insert_column_with_data_func(int position, const Glib::ustring& ti
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when TreeView_Private::SignalProxy_CellData_gtk_callback_destroy() is called.
- SlotCellData* slot_copy = new SlotCellData(slot);
+ auto slot_copy = new SlotCellData(slot);
return gtk_tree_view_insert_column_with_data_func(
gobj(), position, title.c_str(), cell.gobj(),
@@ -233,7 +233,7 @@ void TreeView::set_search_equal_func(const SlotSearchEqual& slot)
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when SignalProxy_SearchEqual_gtk_callback_destroy() is called.
- SlotSearchEqual* slot_copy = new SlotSearchEqual(slot);
+ auto slot_copy = new SlotSearchEqual(slot);
gtk_tree_view_set_search_equal_func(gobj(),
&SignalProxy_SearchEqual_gtk_callback, slot_copy,
@@ -244,7 +244,7 @@ void TreeView::set_column_drag_function(const SlotColumnDrop& slot)
{
//Create a copt of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when SignalProxy_ColumnDrop_gtk_callback_destroy() is called.
- SlotColumnDrop* slot_copy = new SlotColumnDrop(slot);
+ auto slot_copy = new SlotColumnDrop(slot);
gtk_tree_view_set_column_drag_function(gobj(),
&SignalProxy_ColumnDrop_gtk_callback, slot_copy,
@@ -373,7 +373,7 @@ void TreeView::set_row_separator_func(const SlotRowSeparator& slot)
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when SignalProxy_RowSeparator_gtk_callback_destroy() is called.
- SlotRowSeparator* slot_copy = new SlotRowSeparator(slot);
+ auto slot_copy = new SlotRowSeparator(slot);
gtk_tree_view_set_row_separator_func(gobj(),
&TreeView_Private::SignalProxy_RowSeparator_gtk_callback, slot_copy,
@@ -384,7 +384,7 @@ void TreeView::set_search_position_func(const SlotSearchPosition& slot)
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when SignalProxy_SearchPosition_gtk_callback_destroy() is called.
- SlotSearchPosition* slot_copy = new SlotSearchPosition(slot);
+ auto slot_copy = new SlotSearchPosition(slot);
gtk_tree_view_set_search_position_func(gobj(),
&SignalProxy_SearchPosition_gtk_callback, slot_copy,
diff --git a/gtk/src/treeviewcolumn.ccg b/gtk/src/treeviewcolumn.ccg
index a2f5bfa..c923de6 100644
--- a/gtk/src/treeviewcolumn.ccg
+++ b/gtk/src/treeviewcolumn.ccg
@@ -66,7 +66,7 @@ void TreeViewColumn::set_cell_data_func(CellRenderer& cell_renderer, const SlotC
{
//Create a copy of the slot. A pointer to this will be passed through the callback's data parameter.
//It will be deleted when TreeView_Private::SignalProxy_CellData_gtk_callback_destroy() is called.
- SlotCellData* slot_copy = new SlotCellData(slot);
+ auto slot_copy = new SlotCellData(slot);
gtk_tree_view_column_set_cell_data_func(
gobj(), cell_renderer.gobj(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]