diff options
author | Juuso Pakarinen <ext-juuso.1.pakarinen@nokia.com> | 2010-12-23 13:48:13 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-12-23 13:48:13 (GMT) |
commit | d2f87812095d658bceea9287543a7f3d52e18944 (patch) | |
tree | c6f0e513fe635656deb3d0e4c027a968b545a188 /tools/assistant/lib | |
parent | e18dfbc2f5cc99aca1ff7abbab5f9b3be2bfed73 (diff) | |
download | Qt-d2f87812095d658bceea9287543a7f3d52e18944.zip Qt-d2f87812095d658bceea9287543a7f3d52e18944.tar.gz Qt-d2f87812095d658bceea9287543a7f3d52e18944.tar.bz2 |
Fix for coding conventions.
Merge-request: 2534
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'tools/assistant/lib')
-rw-r--r-- | tools/assistant/lib/fulltextsearch/qanalyzer.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/assistant/lib/fulltextsearch/qanalyzer.cpp b/tools/assistant/lib/fulltextsearch/qanalyzer.cpp index db2f06c..c974fa6 100644 --- a/tools/assistant/lib/fulltextsearch/qanalyzer.cpp +++ b/tools/assistant/lib/fulltextsearch/qanalyzer.cpp @@ -97,10 +97,9 @@ QCLuceneStandardAnalyzer::QCLuceneStandardAnalyzer(const QStringList &stopWords) d->analyzer = new lucene::analysis::standard::StandardAnalyzer(tArray); - // free memory - for(int i = 0; i < stopWords.count(); ++i) { + for (int i = 0; i < stopWords.count(); ++i) delete [] tArray[i]; - } + delete [] tArray; } @@ -154,10 +153,9 @@ QCLuceneStopAnalyzer::QCLuceneStopAnalyzer(const QStringList &stopWords) d->analyzer = new lucene::analysis::StopAnalyzer(tArray); - // free memory - for(int i = 0; i < stopWords.count(); ++i) { + for (int i = 0; i < stopWords.count(); ++i) delete [] tArray[i]; - } + delete [] tArray; } |