Skip to content

Commit d5670a8

Browse files
committed
fix for bug #49655 (thanks to P.Joyez)
1 parent 8ccd67a commit d5670a8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Plugins/Qt/qt_widget.cpp

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

30-
void tm_delete (qt_widget_rep* ptr) {
30+
template<>
31+
void tm_delete<qt_widget_rep> (qt_widget_rep* ptr) {
3132
void *mem= ptr->derived_this ();
3233
ptr -> ~qt_widget_rep ();
3334
fast_delete (mem);

src/Plugins/Qt/qt_widget.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ class qt_widget_rep : public widget_rep {
192192
}
193193
};
194194

195-
195+
template <>
196+
void tm_delete<qt_widget_rep>(qt_widget_rep *);
197+
196198
/*! Reference counting mechanism.
197199
198200
Like elsewhere in TeXmacs, this is a wrapper around its corresponding

0 commit comments

Comments
 (0)