summaryrefslogtreecommitdiffstats
path: root/src/languages/flowcode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/languages/flowcode.cpp')
-rw-r--r--src/languages/flowcode.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/languages/flowcode.cpp b/src/languages/flowcode.cpp
index b557c59..a1c664d 100644
--- a/src/languages/flowcode.cpp
+++ b/src/languages/flowcode.cpp
@@ -96,7 +96,7 @@ void FlowCode::addCode( const TQString& code )
bool FlowCode::isValidBranch( FlowPart *flowPart )
{
- return flowPart && (flowPart->level() >= m_curLevel) && !m_stopParts.tqcontains(flowPart);
+ return flowPart && (flowPart->level() >= m_curLevel) && !m_stopParts.contains(flowPart);
}
void FlowCode::addCodeBranch( FlowPart * flowPart )
@@ -107,7 +107,7 @@ void FlowCode::addCodeBranch( FlowPart * flowPart )
if ( !isValidBranch(flowPart) )
return;
- if ( m_addedParts.tqcontains(flowPart) )
+ if ( m_addedParts.contains(flowPart) )
{
const TQString labelName = genLabel(flowPart->id());
addCode( "goto "+labelName );
@@ -145,7 +145,7 @@ void FlowCode::removeStopPart( FlowPart *part )
// We only want to remove one instance of the FlowPart, in case it has been
// used as a StopPart for more than one FlowPart
- FlowPartList::iterator it = m_stopParts.tqfind(part);
+ FlowPartList::iterator it = m_stopParts.find(part);
if ( it != m_stopParts.end() ) m_stopParts.remove(it);
}
@@ -278,7 +278,7 @@ TQString FlowCode::generateMicrobe( const ItemList &itemList, MicroSettings *set
if ( portType != (1<<pinCount)-1 )
{
TQString name = *it;
- name.tqreplace("PORT","TRIS");
+ name.replace("PORT","TRIS");
addCode( name+" = "+TQString::number(portType) );
}
}
@@ -319,7 +319,7 @@ void FlowCode::tidyCode()
const TQStringList::iterator end = m_labels.end();
for ( TQStringList::iterator it = m_labels.begin(); it != end; ++it )
{
- if ( !m_gotos.tqcontains(*it) ) m_code.remove(*it+':');
+ if ( !m_gotos.contains(*it) ) m_code.remove(*it+':');
}
@@ -444,7 +444,7 @@ void FlowCode::tidyCode()
void FlowCode::addSubroutine( FlowPart *part )
{
- if ( !part || m_subroutines.tqcontains(part) || part->parentItem() || !dynamic_cast<FlowContainer*>(part) ) return;
+ if ( !part || m_subroutines.contains(part) || part->parentItem() || !dynamic_cast<FlowContainer*>(part) ) return;
m_subroutines.append(part);
}