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

remove redundant checks

üst 983d1145
...@@ -95,25 +95,19 @@ Hyphenator::Hyphenator() : ...@@ -95,25 +95,19 @@ Hyphenator::Hyphenator() :
numdict = 0; numdict = 0;
} }
Hyphenator::~Hyphenator() Hyphenator::~Hyphenator()
{ {
if (pPropHelper) if (pPropHelper)
pPropHelper->RemoveAsPropListener(); pPropHelper->RemoveAsPropListener();
if ((numdict) && (aDicts)) if (numdict && aDicts)
{ {
for (int i=0; i < numdict; i++) for (int i=0; i < numdict; ++i)
{ delete aDicts[i].apCC;
if (aDicts[i].apCC) delete aDicts[i].apCC;
aDicts[i].apCC = NULL;
}
} }
if (aDicts) delete[] aDicts;
aDicts = NULL;
numdict = 0;
}
delete[] aDicts;
}
PropertyHelper_Hyphen & Hyphenator::GetPropHelper_Impl() PropertyHelper_Hyphen & Hyphenator::GetPropHelper_Impl()
{ {
......
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