Initialize doxygenTranslator pointer to NULL when it is unused.
No real changes, but avoid having pointer with junk contents, even if it's unused. This also avoid the need for checking whether it's used before deleting it.
This commit is contained in:
parent
ed40190fe1
commit
984d5fa299
2 changed files with 3 additions and 2 deletions
|
|
@ -171,8 +171,7 @@ public:
|
|||
}
|
||||
|
||||
~JAVA() {
|
||||
if (doxygen)
|
||||
delete doxygenTranslator;
|
||||
delete doxygenTranslator;
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue