diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-10 16:13:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-10 16:13:34 +0200 |
commit | 7a1fad0d4f6b95c9beafa9c34f34b70bb9a0c9ed (patch) | |
tree | 10280a4d4cde82967bba69ee1fe0f4a9db71bc9c /vcl | |
parent | 3bf4ada33f09e155f3350602e7a4b6cec77e40f0 (diff) |
convert ScopedVclPtr to ScopedVclPtrInstance
Change-Id: I22a9d9c313a81ccee885b9c8785d4b008a6f2058
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/README.lifecycle | 2 | ||||
-rw-r--r-- | vcl/workben/vcldemo.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/README.lifecycle b/vcl/README.lifecycle index 6a9e080c176a..0b09f57b430e 100644 --- a/vcl/README.lifecycle +++ b/vcl/README.lifecycle @@ -125,7 +125,7 @@ or: + // someone else gets a VclPtr to xDialog or: - VirtualDevice aDev; -+ ScopedVclPtrInstance<VirtualDevice> pDev(); ++ ScopedVclPtrInstance<VirtualDevice> pDev; ** Why are these 'disposeOnce' calls in destructors ? diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 4347801e824d..84018793c5c4 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -944,8 +944,8 @@ public: BitmapEx AlphaRecovery(OutputDevice &rDev, Point aPt, BitmapEx &aSrc) { // Compositing onto 2x colors beyond our control - ScopedVclPtr< VirtualDevice > aWhite(new VirtualDevice()); - ScopedVclPtr< VirtualDevice > aBlack(new VirtualDevice()); + ScopedVclPtrInstance< VirtualDevice > aWhite; + ScopedVclPtrInstance< VirtualDevice > aBlack; aWhite->SetOutputSizePixel(aSrc.GetSizePixel()); aWhite->SetBackground(Wallpaper(COL_WHITE)); aWhite->Erase(); |