[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4/kdelibs/kdecore
From:       Joseph Wenninger <kde () jowenn ! at>
Date:       2005-06-09 19:52:08
Message-ID: 1118346728.389784.5025.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 423815 by jowenn:

dont't hit qlist assert

 M  +4 -1      kurl.cpp  


--- branches/work/kde4/kdelibs/kdecore/kurl.cpp #423814:423815
@@ -1749,13 +1749,16 @@
 
   // No double '/' characters
   i = 0;
+  const int _txtlen=_txt.length();
   if ( len != 0 && m_strPath[ len - 1 ] == '/' )
   {
-    while( _txt[i] == '/' )
+    while ( (i<_txtlen) && ( _txt[i] == '/' ) )
       ++i;
   }
 
   m_strPath += _txt.mid( i );
+  //kdDebug(126)<<"addPath: resultpath="<<m_strPath<<endl;
+
 }
 
 QString KURL::directory( bool _strip_trailing_slash_from_result,
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic