Skip to content

Commit 2a9f5c9

Browse files
committed
Need to add destructor to WBoxLayout
Impl::Grid is not exported, so the caller can't instantiate ~WBoxLayout(). It needs to be exported.
1 parent 20a056a commit 2a9f5c9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Wt/WBoxLayout.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ WBoxLayout::WBoxLayout(LayoutDirection dir)
3838
: direction_(dir)
3939
{ }
4040

41+
WBoxLayout::~WBoxLayout()
42+
{ }
43+
4144
void WBoxLayout::addItem(std::unique_ptr<WLayoutItem> item)
4245
{
4346
insertItem(count(), std::move(item), 0, None);

src/Wt/WBoxLayout.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ class WT_API WBoxLayout : public WLayout
107107
*/
108108
WBoxLayout(LayoutDirection dir);
109109

110+
virtual ~WBoxLayout() override;
111+
110112
virtual void addItem(std::unique_ptr<WLayoutItem> item) override;
111113
virtual std::unique_ptr<WLayoutItem> removeItem(WLayoutItem *item) override;
112114
virtual WLayoutItem *itemAt(int index) const override;

0 commit comments

Comments
 (0)