Skip to content

Commit 8ccd67a

Browse files
committed
more consistent fix for #40655 (thanks to Max)
1 parent 1586b55 commit 8ccd67a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Plugins/Qt/qt_widget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* qt_widget_rep: the base widget for the Qt port.
2828
******************************************************************************/
2929

30-
void qt_widget::tm_delete (qt_widget_rep* ptr) {
30+
void tm_delete (qt_widget_rep* ptr) {
3131
void *mem= ptr->derived_this ();
3232
ptr -> ~qt_widget_rep ();
3333
fast_delete (mem);

src/Plugins/Qt/qt_widget.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ class qt_widget_rep : public widget_rep {
201201
*/
202202
class qt_widget {
203203
public:
204-
205-
void tm_delete (qt_widget_rep* ptr);
206-
207204
ABSTRACT_NULL(qt_widget); // Automagically declared constructor, methods, etc.
208205

209206
inline bool operator == (qt_widget w) { return rep == w.rep; }

src/System/Misc/fast_alloc.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ inline void* operator new[] (size_t s, void* loc) { return loc; }
6969
class widget_rep;
7070
void tm_delete (widget_rep* ptr);
7171

72+
class qt_widget_rep;
73+
void tm_delete (qt_widget_rep* ptr);
74+
7275
class editor_rep;
7376
void tm_delete (editor_rep* ptr);
7477

0 commit comments

Comments
 (0)