diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-05-21 21:46:11 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-05-21 22:08:18 +0900 |
commit | e08e630110b6bf367766f2e47dc4988404a692d8 (patch) | |
tree | e5f7b0269a7c4c75a1b4ab6f00428e22249127e9 /svx | |
parent | 5f2ef2b270a70f3ad486012976e95d1192e04c2d (diff) |
deleting NULL is safe
Change-Id: Iad17d77d61eccf0973fff0da91089e7a59fc9df0
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/engine3d/float3d.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx index 067038007e0d..b6cfd4b5188f 100644 --- a/svx/source/engine3d/float3d.cxx +++ b/svx/source/engine3d/float3d.cxx @@ -453,8 +453,7 @@ Svx3DWin::~Svx3DWin() delete pConvertTo3DItem; delete pConvertTo3DLatheItem; - if(mpRemember2DAttributes) - delete mpRemember2DAttributes; + delete mpRemember2DAttributes; delete mpImpl; } @@ -3116,8 +3115,7 @@ void Svx3DWin::UpdatePreview() // document is to be reloaded, destroy remembered ItemSet void Svx3DWin::DocumentReload() { - if(mpRemember2DAttributes) - delete mpRemember2DAttributes; + delete mpRemember2DAttributes; mpRemember2DAttributes = 0L; } |