aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceresult.cpp
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-08 18:17:42 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-08 18:17:42 +0100
commit72120576b04270ea7ddf207322d29fd81823d243 (patch)
tree9541d4bcb8297f4874cf6cc63db11fd0e658a203 /diceresult.cpp
parentce287c6b7104b11bb3b71cc5ddb79cf3d66c1ccb (diff)
downloadOneRoll-72120576b04270ea7ddf207322d29fd81823d243.tar.gz
OneRoll-72120576b04270ea7ddf207322d29fd81823d243.zip
Update diceresult.cpp
die*
Diffstat (limited to 'diceresult.cpp')
-rw-r--r--diceresult.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/diceresult.cpp b/diceresult.cpp
index c000623..015d759 100644
--- a/diceresult.cpp
+++ b/diceresult.cpp
@@ -4,15 +4,15 @@ DiceResult::DiceResult()
{
}
-void DiceResult::insertResult(Die die)
+void DiceResult::insertResult(Die* die)
{
m_diceValues.append(die);
}
-QList<Die>& DiceResult::getResultList()
+QList<Die*>& DiceResult::getResultList()
{
return m_diceValues;
}
-void DiceResult::setResultList(QList<Die> list)
+void DiceResult::setResultList(QList<Die*> list)
{
m_diceValues.clear();
m_diceValues << list;
@@ -30,7 +30,7 @@ qint64 DiceResult::getScalar()
if(m_diceValues.size()==1)
{
- return m_diceValues[0].getValue();
+ return m_diceValues[0]->getValue();
}
return 0;
}