summaryrefslogtreecommitdiff
path: root/vcl/README.lifecycle
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-01 21:53:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-02 16:43:35 +0200
commitb55ee51befef86a32a996b4dc55014c21b45ef5c (patch)
treeda051441ee11b0b8f9fe55ae066c69a25c17ea8b /vcl/README.lifecycle
parent324097a2a0093da7d20e3bc7cbbf79b40a79867c (diff)
no direct ModelessDialog instantiation left
Change-Id: If31cf3c02ab714f45ebbc0139e0e77102b5eb2ba Reviewed-on: https://gerrit.libreoffice.org/73325 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/README.lifecycle')
-rw-r--r--vcl/README.lifecycle4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/README.lifecycle b/vcl/README.lifecycle
index dc6286210780..d9d186425b64 100644
--- a/vcl/README.lifecycle
+++ b/vcl/README.lifecycle
@@ -308,11 +308,11 @@ ways and often both.
Window that has already been destroyed. This can easily
happen via this sort of pattern:
- ModelessDialog *pDlg = VclPtr<ModelessDialog>(nullptr /* parent */);
+ ModalDialog *pDlg = VclPtr<ModalDialog>(nullptr /* parent */);
// by here the pDlg quite probably points to free'd memory...
It is necessary in these cases to ensure that the *pDlg is
- a VclPtr<ModelessDialog> instead.
+ a VclPtr<ModalDialog> instead.
** It crashes with some invalid memory #2...