diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-18 22:49:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 09:47:54 +0100 |
commit | ab826b141724fbf6aa50ad7eacb7335807b20bf9 (patch) | |
tree | 6e53877c81d548c3b38d87e83abd84d1a87ccf12 /lingucomponent | |
parent | 983d1145fcb9b5d7279d34fad006d3a30286dd2c (diff) |
remove redundant checks
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx | 16 |
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() { |