Kaydet (Commit) cb040cc7 authored tarafından Caolán McNamara's avatar Caolán McNamara

unnecessary to check for null before delete

Change-Id: I82b5c5ced8a4f0e719d1aeffed86845b9db1b68b
üst 94e175e9
......@@ -34,49 +34,25 @@
OutDevState::~OutDevState()
{
if ( mnFlags & PUSH_LINECOLOR )
{
if ( mpLineColor )
delete mpLineColor;
}
delete mpLineColor;
if ( mnFlags & PUSH_FILLCOLOR )
{
if ( mpFillColor )
delete mpFillColor;
}
delete mpFillColor;
if ( mnFlags & PUSH_FONT )
delete mpFont;
if ( mnFlags & PUSH_TEXTCOLOR )
delete mpTextColor;
if ( mnFlags & PUSH_TEXTFILLCOLOR )
{
if ( mpTextFillColor )
delete mpTextFillColor;
}
delete mpTextFillColor;
if ( mnFlags & PUSH_TEXTLINECOLOR )
{
if ( mpTextLineColor )
delete mpTextLineColor;
}
delete mpTextLineColor;
if ( mnFlags & PUSH_OVERLINECOLOR )
{
if ( mpOverlineColor )
delete mpOverlineColor;
}
delete mpOverlineColor;
if ( mnFlags & PUSH_MAPMODE )
{
if ( mpMapMode )
delete mpMapMode;
}
delete mpMapMode;
if ( mnFlags & PUSH_CLIPREGION )
{
if ( mpClipRegion )
delete mpClipRegion;
}
delete mpClipRegion;
if ( mnFlags & PUSH_REFPOINT )
{
if ( mpRefPoint )
delete mpRefPoint;
}
delete mpRefPoint;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment