summaryrefslogtreecommitdiff
path: root/include/svtools/valueset.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-27 14:02:38 +0200
committerNoel Grandin <noel@peralex.com>2014-10-29 09:36:17 +0200
commitbacee60a5920585feeff58840357aa7ac33e50a7 (patch)
tree75da30b17723f95d35e47e4794dd6c3537833fc1 /include/svtools/valueset.hxx
parent7344923ffdf751646396b38af6a23be93b53a06a (diff)
ref-counting vcl::Window subclasses
Points of discussion -------------------- (*) where in the Window destructor should dispose() be called? It's a seriously large method. (*) we're going to need similar typedefs and declarations for every single sub-class of vcl::Window, I assume that I will need to create a macro to make it less verbose. TODO ---- Update clang plugin to verify that: (a) dispose() methods always call their superclass dispose() (b) dispose() methods don't forget to clear any references owned by that class. Change-Id: I873d5d5166f811e2f65e49327cc98862559fcf30
Diffstat (limited to 'include/svtools/valueset.hxx')
-rw-r--r--include/svtools/valueset.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx
index e82a4b4ce353..4ddc64db36e4 100644
--- a/include/svtools/valueset.hxx
+++ b/include/svtools/valueset.hxx
@@ -177,7 +177,6 @@ to be set (before Show) with SetStyle().
*************************************************************************/
typedef std::vector<ValueSetItem*> ValueItemList;
-typedef boost::scoped_ptr<ScrollBar> ScrollBarPtr;
typedef boost::scoped_ptr<ValueSetItem> ValueSetItemPtr;
// - ValueSet types -
@@ -202,7 +201,7 @@ private:
Timer maTimer;
ValueItemList mItemList;
ValueSetItemPtr mpNoneItem;
- ScrollBarPtr mpScrollBar;
+ boost::scoped_ptr<ScrollBar> mpScrollBar;
Rectangle maNoneItemRect;
Rectangle maItemListRect;
long mnItemWidth;