diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-18 09:54:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-18 09:54:01 +0200 |
commit | e5a8d8c065c50316fbdd84424794aecaa634bdb5 (patch) | |
tree | 3a5673155ba4efb99d2a06f8e87761b1796c8f45 /include/vcl | |
parent | 437210d58f32177ef1829d704f7f4d2f1bbfbfdd (diff) |
Don't immediately release temporary VclPtr returned from Create
...the only reason this didn't cause any problems is that the VclPtr returned
from Create already had an mnRefCnt > 1, because of activity in the PushButton
ctor.
Change-Id: I1066ff0b507b8a1ebff079f7b914235a7396368d
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/btndlg.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/btndlg.hxx b/include/vcl/btndlg.hxx index 156a50d416e8..6ae2824bb1e3 100644 --- a/include/vcl/btndlg.hxx +++ b/include/vcl/btndlg.hxx @@ -96,7 +96,7 @@ private: Link<> maClickHdl; SAL_DLLPRIVATE void ImplInitButtonDialogData(); - SAL_DLLPRIVATE PushButton* ImplCreatePushButton( ButtonDialogFlags nBtnFlags ); + SAL_DLLPRIVATE VclPtr<PushButton> ImplCreatePushButton( ButtonDialogFlags nBtnFlags ); SAL_DLLPRIVATE ImplBtnDlgItem* ImplGetItem( sal_uInt16 nId ) const; DECL_DLLPRIVATE_LINK( ImplClickHdl, PushButton* pBtn ); SAL_DLLPRIVATE void ImplPosControls(); |