diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-02-18 07:57:01 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-18 07:58:32 +0000 |
commit | 019458b151f402c1f8bbabc90e94987bfe2c32f2 (patch) | |
tree | 439a74ce7cdf400bba3851440e43cb6af289e51d /vcl/source | |
parent | 140c90f4302303faf146c4a509acfb1d21c26164 (diff) |
partial revert of unused code removal, and add LINUX guards
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/helper/lazydelete.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/helper/lazydelete.cxx b/vcl/source/helper/lazydelete.cxx index d63466e24761..b160bb8506f7 100644 --- a/vcl/source/helper/lazydelete.cxx +++ b/vcl/source/helper/lazydelete.cxx @@ -70,6 +70,16 @@ template<> bool LazyDeletor<Window>::is_less( Window* left, Window* right ) return (left != right && right->IsChild( left, sal_True )) ? true : false; } +#ifndef LINUX +// specialized is_less function for Menu +template<> bool LazyDeletor<Menu>::is_less( Menu* left, Menu* right ) +{ + while( left && left != right ) + left = left->ImplGetStartedFrom(); + return left != NULL; +} +#endif + DeleteOnDeinitBase::~DeleteOnDeinitBase() { ImplSVData* pSVData = ImplGetSVData(); |