summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-08 10:29:24 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-09 19:59:06 +0100
commit422156fcce8922d968fb82db39f3b1237b961be1 (patch)
tree222b5b145e7c79b6698bf6ca2a36f51294db5525 /include
parent3ad9d2550f922ae7f555ca0753c57907d4d78ab6 (diff)
vcl: a couple more places that shouldn't be stack-allocating Window objects
Change-Id: I773fb5ed066db2c22b3d50198dff350b755ab24a
Diffstat (limited to 'include')
-rw-r--r--include/vcl/layout.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 522b856d9cbc..d11da2cc05d0 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -577,7 +577,7 @@ private:
bool m_bUserManagedScrolling;
VclPtr<ScrollBar> m_pVScroll;
VclPtr<ScrollBar> m_pHScroll;
- ScrollBarBox m_aScrollBarBox;
+ VclPtr<ScrollBarBox> m_aScrollBarBox;
};
class VCL_DLLPUBLIC VclViewport : public VclBin
@@ -619,13 +619,13 @@ private:
}
};
- EventBoxHelper m_aEventBoxHelper;
+ VclPtr<EventBoxHelper> m_aEventBoxHelper;
public:
VclEventBox(vcl::Window* pParent)
: VclBin(pParent)
- , m_aEventBoxHelper(this)
+ , m_aEventBoxHelper(new EventBoxHelper(this))
{
- m_aEventBoxHelper.Show();
+ m_aEventBoxHelper->Show();
}
virtual vcl::Window *get_child() SAL_OVERRIDE;
virtual const vcl::Window *get_child() const SAL_OVERRIDE;