summaryrefslogtreecommitdiffstats
path: root/parts/astyle/astyle_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/astyle/astyle_part.cpp')
-rw-r--r--parts/astyle/astyle_part.cpp20
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);
}
}