aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-03-31 23:44:10 +0200
committerRenaud G <renaud@rolisteam.org>2015-03-31 23:44:10 +0200
commit88edfa144f4da3880168a8def910561f5df203a0 (patch)
treeeda27c6bc308b204db5986582633e99a65b0b28a
parent4628051801a5c5297e5bab51d75b28b57b1f5cf5 (diff)
downloadOneRoll-88edfa144f4da3880168a8def910561f5df203a0.tar.gz
OneRoll-88edfa144f4da3880168a8def910561f5df203a0.zip
-add feature to list aliases.
-rw-r--r--diceparser.cpp4
-rw-r--r--main.cpp2
2 files changed, 2 insertions, 4 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 1e23c6b..23e40cd 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -72,8 +72,8 @@ DiceParser::DiceParser()
m_commandList = new QStringList();
- m_commandList->append(tr("help"));
- m_commandList->append(tr("la"));
+ m_commandList->append(QObject::tr("help"));
+ m_commandList->append(QObject::tr("la"));
}
diff --git a/main.cpp b/main.cpp
index 0dac21c..926e3d4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -83,8 +83,6 @@ int main(int argc, char *argv[])
commands << QString::fromLatin1(argv[i]);
}
}
-
-
foreach(QString cmd, commands)
{
if(myParser->parseLine(cmd))