diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-12 12:21:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-13 19:38:08 +0000 |
commit | 47d3e82e4f2c0c06231c952a0cc2456b712da0cc (patch) | |
tree | 0f5d4aa62edb85d7c13bb6430aadfa9635c9e3ef /vcl/README.lifecycle | |
parent | ab5f16eb37d8fa2b7924f1e19f9fe8f373714adc (diff) |
boost->std
Change-Id: I9b4f884c6313a53fea543ea6f93175205351ad14
Reviewed-on: https://gerrit.libreoffice.org/18517
Tested-by: Jenkins <ci@libreoffice.org>
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.lifecycle | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/README.lifecycle b/vcl/README.lifecycle index 6b5cbd6e8df4..4bf17fb96cb5 100644 --- a/vcl/README.lifecycle +++ b/vcl/README.lifecycle @@ -11,7 +11,7 @@ or: pDialog->Execute(...); delete pDialog; or: - boost::shared_ptr<Dialog> xDialog(new pDialog()); // old + std::shared_ptr<Dialog> xDialog(new pDialog()); // old xDialog->Execute(...); // depending who shared the ptr this would be freed sometime @@ -118,7 +118,7 @@ or: - delete pDialog; + pDialog.disposeAndClear(); // done manually - replaces a delete or: -- boost::shared_ptr<Dialog> xDialog(new Dialog(...)); +- std::shared_ptr<Dialog> xDialog(new Dialog(...)); + ScopedVclPtrInstance<Dialog> xDialog(...); xDialog->Execute(...); + // depending how shared_ptr was shared perhaps |