diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 330c33ab6f97b279737bf9527c9add7bb1475450 (patch) | |
tree | 85cb998d3077ae295d65944ebb4d0189fc660ead /parts/astyle | |
parent | 093de0db4fea89b3f94a2359c6981f353d035eb7 (diff) | |
download | tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/astyle')
-rw-r--r-- | parts/astyle/astyle_part.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/astyle/astyle_part.cpp b/parts/astyle/astyle_part.cpp index de7153c1..59cb1666 100644 --- a/parts/astyle/astyle_part.cpp +++ b/parts/astyle/astyle_part.cpp @@ -193,21 +193,21 @@ void AStylePart::beautifySource() if (m_project["Fill"].toString() == "Tabs") { // tabs and wsCount spaces to be a tab - TQString tqreplace; + TQString replace; for (int i =0;i<wsCount;i++) - tqreplace+=' '; + replace+=' '; - indentWith=indentWith.tqreplace(tqreplace, TQChar('\t')); + indentWith=indentWith.replace(replace, TQChar('\t')); indentWith=indentWith.remove(' '); } else { if ( m_project["FillForce"].toBool()){ //convert tabs to spaces - TQString tqreplace; + TQString replace; for (int i =0;i<wsCount;i++) - tqreplace+=' '; + replace+=' '; - indentWith=indentWith.tqreplace(TQChar('\t'),tqreplace); + indentWith=indentWith.replace(TQChar('\t'),replace); } } } @@ -323,14 +323,14 @@ void AStylePart::activePartChanged ( KParts::Part *part ) if ( iface ) { // check for the everything case.. - if ( m_searchExtensions.tqfind ( "*" ) == m_searchExtensions.end() ) + if ( m_searchExtensions.find ( "*" ) == m_searchExtensions.end() ) { TQString extension = rw_part->url().path(); - int pos = extension.tqfindRev ( '.' ); + int pos = extension.findRev ( '.' ); if ( pos >= 0 ) { extension = extension.mid ( pos ); - enabled = ( m_searchExtensions.tqfind ( extension ) != m_searchExtensions.end() ); + enabled = ( m_searchExtensions.find ( extension ) != m_searchExtensions.end() ); } } else @@ -436,7 +436,7 @@ void AStylePart::restorePartialProjectSession(const TQDomElement * el) if ( ext.isEmpty()){ ext=defaultFormatExtensions; } - setExtensions(ext.tqreplace(TQChar(','), TQChar('\n')),false); + setExtensions(ext.replace(TQChar(','), TQChar('\n')),false); } } |