summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-24 14:13:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-24 14:14:30 +0000
commit21844db97300e594c212e4a78336cba282a0ad0b (patch)
treec5f5a79fd437c1441a5474a5aada56e107a74dbb /sw/inc
parenteff9dbc2d6dbaafd10e2522ada0e0b24ad820193 (diff)
valgrind: fix memory leak
Change-Id: I33ad32f4fa6ca6206e98b38f9170634bce9970de
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/viewsh.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index c6e7b6ed81a4..fd3d28132e7c 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -106,16 +106,16 @@ class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
// Set SwVisArea in order to enable clean formatting before printing.
friend void SetSwVisArea( SwViewShell *pSh, const SwRect & );
- BitmapEx* m_pReplaceBmp; ///< replaced display of still loaded images
- BitmapEx* m_pErrorBmp; ///< error display of missed images
+ std::unique_ptr<BitmapEx> m_xReplaceBmp; ///< replaced display of still loaded images
+ std::unique_ptr<BitmapEx> m_xErrorBmp; ///< error display of missed images
- static bool mbLstAct; // true if EndAction of last Shell
- // i.e. if the EndActions of the other
- // Shells on the document are through.
+ static bool mbLstAct; // true if EndAction of last Shell
+ // i.e. if the EndActions of the other
+ // Shells on the document are through.
- Point maPrtOffst; // Ofst for Printer,
+ Point maPrtOffst; // Ofst for Printer,
// non-printable margin.
- Size maBrowseBorder; // Border for frame documents.
+ Size maBrowseBorder; // Border for frame documents.
SwRect maInvalidRect;
SfxViewShell *mpSfxViewShell;