Commit 050fce2b authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 741417 - Crash when building gtkmm documentation

parent 2716fc48
......@@ -247,9 +247,9 @@ QCString QCString::right( uint len ) const
QCString QCString::mid( uint index, uint len) const
{
int slen = length();
uint slen = (uint)length();
if (len==0xffffffff) len = slen-index;
if (isEmpty() || (int)index>=slen || len==0)
if (isEmpty() || index>=slen || len==0)
{
return QCString();
}
......
......@@ -1010,6 +1010,7 @@ static Definition *buildScopeFromQualifiedName(const QCString name,
while (i<level)
{
int idx=getScopeFragment(name,p,&l);
if (idx==-1) return prevScope;
QCString nsName = name.mid(idx,l);
if (nsName.isEmpty()) return prevScope;
if (!fullScope.isEmpty()) fullScope+="::";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment