summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib
diff options
context:
space:
mode:
authorJuuso Pakarinen <ext-juuso.1.pakarinen@nokia.com>2010-12-23 13:48:13 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-12-23 13:48:13 (GMT)
commitd2f87812095d658bceea9287543a7f3d52e18944 (patch)
treec6f0e513fe635656deb3d0e4c027a968b545a188 /tools/assistant/lib
parente18dfbc2f5cc99aca1ff7abbab5f9b3be2bfed73 (diff)
downloadQt-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.cpp10
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;
}