diff options
Diffstat (limited to 'parts/documentation/protocols/chm/chm.cpp')
-rw-r--r-- | parts/documentation/protocols/chm/chm.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/parts/documentation/protocols/chm/chm.cpp b/parts/documentation/protocols/chm/chm.cpp index dbcbb07f..6ae9b2e2 100644 --- a/parts/documentation/protocols/chm/chm.cpp +++ b/parts/documentation/protocols/chm/chm.cpp @@ -178,11 +178,11 @@ void ChmProtocol::get( const KURL& url ) TQRegExp mergeParam("<param name=\"Merge\" value=\"(.*)\">", false); mergeParam.setMinimal(true); - std::stack<int> tqparents; + std::stack<int> parents; int counter = 1; int current = 0; int old = 0, pos = 0; - tqparents.push(0); + parents.push(0); while ((pos = s.tqfind(object, pos)) != -1) { if(htmlOutput) output += s.mid(old, pos - old); if(catalog) { @@ -191,12 +191,12 @@ void ChmProtocol::get( const KURL& url ) int pos = 0; while( (pos = ms.tqfind(ex, pos)) != -1) { if(ms.mid(pos, 4) == "<UL>") { - tqparents.push(current); + parents.push(current); } else{ - if(tqparents.empty()){ + if(parents.empty()){ }else{ - current = tqparents.top(); - tqparents.pop(); + current = parents.top(); + parents.pop(); } } pos++; @@ -221,7 +221,7 @@ void ChmProtocol::get( const KURL& url ) KURL u = url; u.setPath(bigpath + local); TQString str; - output += str.sprintf("%i\n%i\n", tqparents.top(), current); + output += str.sprintf("%i\n%i\n", parents.top(), current); output += name + "\n" + u.prettyURL() + "\n"; } m_bIndex = 1; |