summaryrefslogtreecommitdiffstats
path: root/tools/assistant
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2011-01-07 16:43:46 +0100
committerChristian Kandeler <christian.kandeler@nokia.com>2011-01-07 16:45:26 +0100
commiteab9b566d8e7cd98dd69cbcfc39393192a9e6efa (patch)
tree173ee3570867a35e1fdafbb8ecf413e33b7f1d5e /tools/assistant
parent55b0db65877ef5cfb6616f11988c990e2c207bd6 (diff)
CLucene: Use the right delete operator.
Task-number: QTBUG-15787 Task-number: QTBUG-15788
Diffstat (limited to 'tools/assistant')
-rw-r--r--tools/assistant/lib/fulltextsearch/qindexwriter.cpp2
-rw-r--r--tools/assistant/lib/fulltextsearch/qsort.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/assistant/lib/fulltextsearch/qindexwriter.cpp b/tools/assistant/lib/fulltextsearch/qindexwriter.cpp
index 357569ca6c..ee1c2dc343 100644
--- a/tools/assistant/lib/fulltextsearch/qindexwriter.cpp
+++ b/tools/assistant/lib/fulltextsearch/qindexwriter.cpp
@@ -88,7 +88,7 @@ void QCLuceneIndexWriter::addIndexes(const QList<QCLuceneIndexReader*> &readers)
readerArray[i] = (readers.at(i))->d->reader;
d->writer->addIndexes(readerArray);
- delete readerArray;
+ delete [] readerArray;
}
void QCLuceneIndexWriter::addDocument(QCLuceneDocument &doc,
diff --git a/tools/assistant/lib/fulltextsearch/qsort.cpp b/tools/assistant/lib/fulltextsearch/qsort.cpp
index d9375bf9a5..3263195d9f 100644
--- a/tools/assistant/lib/fulltextsearch/qsort.cpp
+++ b/tools/assistant/lib/fulltextsearch/qsort.cpp
@@ -84,7 +84,7 @@ void QCLuceneSort::setSort(const QStringList &fieldNames)
for (int i = 0; i < fieldNames.count(); ++i)
delete [] nameArray[i];
- delete nameArray;
+ delete [] nameArray;
}
void QCLuceneSort::setSort(const QString &field, bool reverse)