summaryrefslogtreecommitdiffstats
path: root/src/searchindex.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-06-10 09:28:22 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-06-10 09:28:22 (GMT)
commit0ce3aea886f4e95da56d164b3944fd54d3d68f89 (patch)
tree6709ddc7b1764dc3b20bbac7eb36c05edcc91e03 /src/searchindex.cpp
parent1983c30b71bf92b3fa6bfedbb98451c3b7f74498 (diff)
downloadDoxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.zip
Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.gz
Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.bz2
Release-1.8.1.1
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r--src/searchindex.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp
index 532b692..dfad6b1 100644
--- a/src/searchindex.cpp
+++ b/src/searchindex.cpp
@@ -106,9 +106,8 @@ void SearchIndex::addWord(const char *word,bool hiPriority,bool recurse)
{
static QRegExp nextPart("[_a-z:][A-Z]");
//printf("SearchIndex::addWord(%s,%d)\n",word,hiPriority);
- QCString wStr(word);
- if (wStr.isEmpty()) return;
- wStr=wStr.lower();
+ if (word==0 || word[0]=='\0') return;
+ QCString wStr = QCString(word).lower();
IndexWord *w = m_words[wStr];
if (w==0)
{