Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit aa6c9bfa authored by Laurent Montel's avatar Laurent Montel 😁

Make it compiles

parent 961a3001
......@@ -139,7 +139,7 @@ QString Freecell::solverFormat() const
for (int i = 0; i < 8 ; i++)
{
QList<KCard*> cards = store[i]->cards();
for (QList<KCard*>::ConstIterator it = cards.begin(); it != cards.end(); ++it)
for (QList<KCard*>::ConstIterator it = cards.constBegin(); it != cards.constEnd(); ++it)
output += rankToString((*it)->rank()) + suitToString((*it)->suit()) + ' ';
output += '\n';
}
......
......@@ -192,7 +192,7 @@ QString Golf::solverFormat() const
{
QList<KCard*> cards = stack[i]->cards();
bool first = true;
for (QList<KCard*>::ConstIterator it = cards.begin(); it != cards.end(); ++it)
for (QList<KCard*>::ConstIterator it = cards.constBegin(); it != cards.constEnd(); ++it)
{
if (!first)
{
......
......@@ -169,7 +169,7 @@ QString Simon::solverFormat() const
for (int i = 0; i < 10 ; i++)
{
QList<KCard*> cards = store[i]->cards();
for (QList<KCard*>::ConstIterator it = cards.begin(); it != cards.end(); ++it)
for (QList<KCard*>::ConstIterator it = cards.constBegin(); it != cards.constEnd(); ++it)
output += rankToString((*it)->rank()) + suitToString((*it)->suit()) + ' ';
output += '\n';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment