summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2011-01-07 15:43:46 (GMT)
committerChristian Kandeler <christian.kandeler@nokia.com>2011-01-07 15:45:26 (GMT)
commiteab9b566d8e7cd98dd69cbcfc39393192a9e6efa (patch)
tree173ee3570867a35e1fdafbb8ecf413e33b7f1d5e
parent55b0db65877ef5cfb6616f11988c990e2c207bd6 (diff)
downloadQt-eab9b566d8e7cd98dd69cbcfc39393192a9e6efa.zip
Qt-eab9b566d8e7cd98dd69cbcfc39393192a9e6efa.tar.gz
Qt-eab9b566d8e7cd98dd69cbcfc39393192a9e6efa.tar.bz2
CLucene: Use the right delete operator.
Task-number: QTBUG-15787 Task-number: QTBUG-15788
-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 357569c..ee1c2dc 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 d9375bf..3263195 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)