diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-06 19:06:46 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-06 19:06:46 (GMT) |
commit | 84084bebe0544650513dbcd75e71a50b2119360d (patch) | |
tree | fd26b4a21967f142fb1daa9458c5558260b574c2 /src/util.cpp | |
parent | 74f8a88bcf8b2c86b7205bee1ae5ee9455b2b323 (diff) | |
download | Doxygen-84084bebe0544650513dbcd75e71a50b2119360d.zip Doxygen-84084bebe0544650513dbcd75e71a50b2119360d.tar.gz Doxygen-84084bebe0544650513dbcd75e71a50b2119360d.tar.bz2 |
Refactoring: changed QValueList to std::vector for template engine
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 90b4af1..3075d1b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1982,8 +1982,10 @@ void linkifyText(const TextGeneratorIntf &out, const Definition *scope, //printf("linkify='%s'\n",text); static QRegExp regExp("[a-z_A-Z\\x80-\\xFF][~!a-z_A-Z0-9$\\\\.:\\x80-\\xFF]*"); static QRegExp regExpSplit("(?!:),"); + if (text==0) return; QCString txtStr=text; int strLen = txtStr.length(); + if (strLen==0) return; //printf("linkifyText scope=%s fileScope=%s strtxt=%s strlen=%d external=%d\n", // scope?scope->name().data():"<none>", // fileScope?fileScope->name().data():"<none>", @@ -1993,7 +1995,6 @@ void linkifyText(const TextGeneratorIntf &out, const Definition *scope, int newIndex; int skipIndex=0; int floatingIndex=0; - if (strLen==0) return; // read a word from the text string while ((newIndex=regExp.match(txtStr,index,&matchLen))!=-1) { |