summaryrefslogtreecommitdiffstats
path: root/languages/ruby/debugger/rdbparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/debugger/rdbparser.cpp')
-rw-r--r--languages/ruby/debugger/rdbparser.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/languages/ruby/debugger/rdbparser.cpp b/languages/ruby/debugger/rdbparser.cpp
index d0e8e31b..a517c301 100644
--- a/languages/ruby/debugger/rdbparser.cpp
+++ b/languages/ruby/debugger/rdbparser.cpp
@@ -34,7 +34,7 @@ namespace RDBDebugger
// **************************************************************************
-void RDBParser::parseVariables(LazyFetchItem *tqparent, char *buf)
+void RDBParser::parseVariables(LazyFetchItem *parent, char *buf)
{
static const char *unknown = "?";
@@ -42,7 +42,7 @@ void RDBParser::parseVariables(LazyFetchItem *tqparent, char *buf)
TQCString value;
int pos;
- Q_ASSERT(tqparent);
+ Q_ASSERT(parent);
if (buf == 0 || strlen(buf) == 0) {
return;
}
@@ -84,7 +84,7 @@ void RDBParser::parseVariables(LazyFetchItem *tqparent, char *buf)
dataType = VALUE_TYPE;
}
- setItem(tqparent, varName, dataType, value);
+ setItem(parent, varName, dataType, value);
pos += var_re.matchedLength();
pos = var_re.search(buf, pos);
@@ -94,7 +94,7 @@ void RDBParser::parseVariables(LazyFetchItem *tqparent, char *buf)
}
}
-void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
+void RDBParser::parseExpandedVariable(VarItem *parent, char *buf)
{
DataType dataType;
int pos;
@@ -102,7 +102,7 @@ void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
TQCString value;
TQRegExp ppref_re("(#<([^:]|::)+:0x[\\da-f]+)([^\\n>]*)(>?)");
- switch (tqparent->dataType()) {
+ switch (parent->dataType()) {
case REFERENCE_TYPE:
{
// Look for a reference type which has been printed via a 'pp' command, to
@@ -139,7 +139,7 @@ void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
}
dataType = determineType((char *) ppvalue_re.cap(2).latin1());
- setItem(tqparent, varName, dataType, value);
+ setItem(parent, varName, dataType, value);
pos += ppvalue_re.matchedLength();
pos = ppvalue_re.search(buf, pos);
@@ -170,7 +170,7 @@ void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
}
DataType dataType = determineType((char *) pparray_re.cap(2).latin1());
- setItem(tqparent, varName, dataType, value);
+ setItem(parent, varName, dataType, value);
pos += pparray_re.matchedLength();
pos = pparray_re.search(buf, pos);
@@ -193,7 +193,7 @@ void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
varName = pphash_re.cap(1);
value = pphash_re.cap(2).latin1();
DataType dataType = determineType(value.data());
- setItem(tqparent, varName, dataType, value);
+ setItem(parent, varName, dataType, value);
pos += pphash_re.matchedLength();
pos = pphash_re.search(buf, pos);
@@ -235,7 +235,7 @@ void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
varName = ppvalue_re.cap(1);
value = ppvalue_re.cap(2).latin1();
dataType = determineType(value.data());
- setItem(tqparent, varName, dataType, value);
+ setItem(parent, varName, dataType, value);
pos += ppvalue_re.matchedLength();
pos = ppvalue_re.search(buf, pos);
@@ -259,7 +259,7 @@ void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
varName = ppstring_re.cap(1);
value = ppstring_re.cap(2).latin1();
DataType dataType = determineType(value.data());
- setItem(tqparent, varName, dataType, value);
+ setItem(parent, varName, dataType, value);
pos += ppstring_re.matchedLength();
pos = ppstring_re.search(buf, pos);
@@ -278,12 +278,12 @@ void RDBParser::parseExpandedVariable(VarItem *tqparent, char *buf)
// **************************************************************************
-void RDBParser::setItem(LazyFetchItem *tqparent, const TQString &varName,
+void RDBParser::setItem(LazyFetchItem *parent, const TQString &varName,
DataType dataType, const TQCString &value)
{
- VarItem *item = tqparent->findItem(varName);
+ VarItem *item = parent->findItem(varName);
if (item == 0) {
- item = new VarItem(tqparent, varName, dataType);
+ item = new VarItem(parent, varName, dataType);
} else {
// The dataType of an item can change, so update it
item->setDataType(dataType);