summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared/proitems.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-05-18 15:25:41 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-07-20 12:30:34 (GMT)
commitabf8b1c273776fa16afacd04e7bb3c5c07a35ab7 (patch)
tree7175e30169c57ce90e7497952ac47b3bee103302 /tools/linguist/shared/proitems.cpp
parentf5bc08b10143e888257ca64be09f9135b2328616 (diff)
downloadQt-abf8b1c273776fa16afacd04e7bb3c5c07a35ab7.zip
Qt-abf8b1c273776fa16afacd04e7bb3c5c07a35ab7.tar.gz
Qt-abf8b1c273776fa16afacd04e7bb3c5c07a35ab7.tar.bz2
remove return values from the visitors which need none
cherry-picked 6ca93b31fd95ef7cce78a5e0d5225e50d6007f2f from creator
Diffstat (limited to 'tools/linguist/shared/proitems.cpp')
-rw-r--r--tools/linguist/shared/proitems.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/linguist/shared/proitems.cpp b/tools/linguist/shared/proitems.cpp
index 471417e..83d4a0f 100644
--- a/tools/linguist/shared/proitems.cpp
+++ b/tools/linguist/shared/proitems.cpp
@@ -116,7 +116,8 @@ bool ProBlock::Accept(AbstractProItemVisitor *visitor)
if (!item->Accept(visitor))
return false;
}
- return visitor->visitEndProBlock(this);
+ visitor->visitEndProBlock(this);
+ return true;
}
// --------------- ProVariable ----------------
@@ -155,7 +156,8 @@ bool ProVariable::Accept(AbstractProItemVisitor *visitor)
if (!item->Accept(visitor))
return false;
}
- return visitor->visitEndProVariable(this);
+ visitor->visitEndProVariable(this);
+ return true;
}
// --------------- ProValue ----------------
@@ -192,7 +194,8 @@ ProItem::ProItemKind ProValue::kind() const
bool ProValue::Accept(AbstractProItemVisitor *visitor)
{
- return visitor->visitProValue(this);
+ visitor->visitProValue(this);
+ return true;
}
// --------------- ProFunction ----------------
@@ -218,7 +221,8 @@ ProItem::ProItemKind ProFunction::kind() const
bool ProFunction::Accept(AbstractProItemVisitor *visitor)
{
- return visitor->visitProFunction(this);
+ visitor->visitProFunction(this);
+ return true;
}
// --------------- ProCondition ----------------
@@ -244,7 +248,8 @@ ProItem::ProItemKind ProCondition::kind() const
bool ProCondition::Accept(AbstractProItemVisitor *visitor)
{
- return visitor->visitProCondition(this);
+ visitor->visitProCondition(this);
+ return true;
}
// --------------- ProOperator ----------------
@@ -270,7 +275,8 @@ ProItem::ProItemKind ProOperator::kind() const
bool ProOperator::Accept(AbstractProItemVisitor *visitor)
{
- return visitor->visitProOperator(this);
+ visitor->visitProOperator(this);
+ return true;
}
// --------------- ProFile ----------------