summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-18 22:49:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-20 09:47:54 +0100
commitab826b141724fbf6aa50ad7eacb7335807b20bf9 (patch)
tree6e53877c81d548c3b38d87e83abd84d1a87ccf12 /lingucomponent
parent983d1145fcb9b5d7279d34fad006d3a30286dd2c (diff)
remove redundant checks
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx16
1 files changed, 5 insertions, 11 deletions
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
index 8324c4fcba0b..768661d28a1c 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
@@ -95,25 +95,19 @@ Hyphenator::Hyphenator() :
numdict = 0;
}
-
Hyphenator::~Hyphenator()
{
if (pPropHelper)
pPropHelper->RemoveAsPropListener();
- if ((numdict) && (aDicts))
+ if (numdict && aDicts)
{
- for (int i=0; i < numdict; i++)
- {
- if (aDicts[i].apCC) delete aDicts[i].apCC;
- aDicts[i].apCC = NULL;
- }
+ for (int i=0; i < numdict; ++i)
+ delete aDicts[i].apCC;
}
- if (aDicts) delete[] aDicts;
- aDicts = NULL;
- numdict = 0;
-}
+ delete[] aDicts;
+}
PropertyHelper_Hyphen & Hyphenator::GetPropHelper_Impl()
{