diff options
author | Thomas Habets <thomas@habets.se> | 2021-02-19 17:38:58 +0000 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-02-26 01:17:25 -0800 |
commit | 4b7006db76b570e4d916e263301333d2f4d2a2df (patch) | |
tree | fb618398b0a1900f2b47749d6a2928570c9ebbf2 /gr-qtgui/lib/edit_box_msg_impl.h | |
parent | 044b4a3b49b67adfe53e0e88f9adf847a25fad61 (diff) |
qtgui: Remove manual memory management
Signed-off-by: Thomas Habets <thomas@habets.se>
Diffstat (limited to 'gr-qtgui/lib/edit_box_msg_impl.h')
-rw-r--r-- | gr-qtgui/lib/edit_box_msg_impl.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gr-qtgui/lib/edit_box_msg_impl.h b/gr-qtgui/lib/edit_box_msg_impl.h index f56eaeaef4..bf84d784ba 100644 --- a/gr-qtgui/lib/edit_box_msg_impl.h +++ b/gr-qtgui/lib/edit_box_msg_impl.h @@ -28,8 +28,14 @@ class QTGUI_API edit_box_msg_impl : public QObject, public edit_box_msg Q_OBJECT private: - int d_argc; - char* d_argv; + // Required now for Qt; argc must be greater than 0 and argv + // must have at least one valid character. Must be valid through + // life of the qApplication: + // http://harmattan-dev.nokia.com/docs/library/html/qt4/qapplication.html + char d_zero = 0; + int d_argc = 1; + char* d_argv = &d_zero; + data_type_t d_type; bool d_is_pair; bool d_is_static; |