mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Remove useless checks "foo!=0" before executing "delete foo"
svn path=/trunk/KDE/kdegraphics/okular/; revision=1079226
This commit is contained in:
parent
dfac3d0236
commit
58d3df0cf3
|
@ -104,11 +104,10 @@ TeXFont_PK::TeXFont_PK(TeXFontDefinition *parent)
|
|||
TeXFont_PK::~TeXFont_PK()
|
||||
{
|
||||
//@@@ Release bitmaps
|
||||
for(unsigned int i=0; i<TeXFontDefinition::max_num_of_chars_in_font; i++)
|
||||
if (characterBitmaps[i] != 0) {
|
||||
delete characterBitmaps[i];
|
||||
characterBitmaps[i] = 0;
|
||||
}
|
||||
for(unsigned int i=0; i<TeXFontDefinition::max_num_of_chars_in_font; i++) {
|
||||
delete characterBitmaps[i];
|
||||
characterBitmaps[i] = 0;
|
||||
}
|
||||
|
||||
if (file != 0) {
|
||||
fclose(file);
|
||||
|
|
|
@ -19,9 +19,7 @@ bitmap::bitmap()
|
|||
|
||||
bitmap::~bitmap()
|
||||
{
|
||||
if (bits != 0) {
|
||||
delete bits;
|
||||
}
|
||||
delete bits;
|
||||
}
|
||||
|
||||
glyph::glyph()
|
||||
|
|
Loading…
Reference in a new issue