summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/variablewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/debugger/variablewidget.cpp')
-rw-r--r--languages/ruby/debugger/variablewidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/languages/ruby/debugger/variablewidget.cpp b/languages/ruby/debugger/variablewidget.cpp
index fc562baa..42a14322 100644
--- a/languages/ruby/debugger/variablewidget.cpp
+++ b/languages/ruby/debugger/variablewidget.cpp
@@ -609,13 +609,13 @@ TQString VarItem::fullName() const
}
// Change 'self.@foobar' to '@foobar'
- vPath.tqreplace(TQRegExp("^self\\.@"), "@");
+ vPath.replace(TQRegExp("^self\\.@"), "@");
// Use instance_variable_get() to access any '@var's in the middle of a path
TQRegExp re_instance_var("\\.(@[^\\[.]+)");
int pos = re_instance_var.search(vPath);
while (pos != -1) {
- vPath.tqreplace( pos,
+ vPath.replace( pos,
re_instance_var.matchedLength(),
TQString(".instance_variable_get(:") + re_instance_var.cap(1) + ")" );
pos = re_instance_var.search(vPath, pos);
@@ -816,7 +816,7 @@ void VarFrameRoot::setActivationId()
bool VarFrameRoot::needsVariables() const
{
- return ( text(VAR_NAME_COLUMN).tqcontains("try_initialize") == 0
+ return ( text(VAR_NAME_COLUMN).contains("try_initialize") == 0
&& isOpen()
&& !isWaitingForData()
&& needsVariables_ );