mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
ccstruct: Remove unneeded NULL checks
It's also not necessary to nullify class variables in the destructor. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
aea0d9a8d5
commit
bb75793539
@ -90,10 +90,7 @@ void STATS::clear() { // clear out buckets
|
||||
* Destructor for a stats class.
|
||||
**********************************************************************/
|
||||
STATS::~STATS () {
|
||||
if (buckets_ != NULL) {
|
||||
delete [] buckets_;
|
||||
buckets_ = NULL;
|
||||
}
|
||||
delete [] buckets_;
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user