summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-04-17 18:47:53 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-04-17 18:47:53 (GMT)
commit37905e0a0fcc820a556d56e609335afd21f8a929 (patch)
tree25b1690e57effb00b6b482041be7b48ca0ae643e /src/util.cpp
parent3120c6832bd3b2df0ecac2ccb08ddcdacd5575ed (diff)
downloadDoxygen-37905e0a0fcc820a556d56e609335afd21f8a929.zip
Doxygen-37905e0a0fcc820a556d56e609335afd21f8a929.tar.gz
Doxygen-37905e0a0fcc820a556d56e609335afd21f8a929.tar.bz2
Release-1.1.2-20000417
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 4b0d369..ccffae9 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -252,7 +252,7 @@ bool leftScopeMatch(const QCString &scope, const QCString &name)
void linkifyText(OutputList &ol,const char *scName,const char *name,const char *text)
{
//printf("scope=`%s' name=`%s' Text: `%s'\n",scName,name,text);
- static QRegExp regExp("[a-z_A-Z0-9:]+");
+ static QRegExp regExp("[a-z_A-Z][a-z_A-Z0-9:]*");
QCString txtStr=text;
OutputList result(&ol);
int matchLen;
@@ -860,8 +860,8 @@ static void trimNamespaceScope(QCString &t1,QCString &t2)
int p2=t2.length();
for (;;)
{
- int i1=t1.findRev("::",p1);
- int i2=t2.findRev("::",p2);
+ int i1=p1==0 ? -1 : t1.findRev("::",p1);
+ int i2=p2==0 ? -1 : t2.findRev("::",p2);
if (i1==-1 && i2==-1)
{
return;