summaryrefslogtreecommitdiff
path: root/move.cpp
diff options
context:
space:
mode:
authorMatt Liberty <matt.liberty@gmail.com>2013-11-03 22:43:22 -0800
committerMatt Liberty <matt.liberty@gmail.com>2013-11-03 22:43:22 -0800
commitecae4ba252c9b78d6b4fa6d14d2e694b8f71306a (patch)
treef2a8aaf923a222d223b0d4d86568864c802e2d76 /move.cpp
parent29ef933fda48f30a752e2dac2a8cb3f3d0f513b0 (diff)
Make clang happy (for Mavericks)
Diffstat (limited to 'move.cpp')
-rw-r--r--move.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/move.cpp b/move.cpp
index 527f96d..eaaf8b6 100644
--- a/move.cpp
+++ b/move.cpp
@@ -14,7 +14,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
@@ -59,7 +59,7 @@ bool operator==(const Move &move1, const Move &move2)
return ret;
}
-bool operator<(const Move &move1, const Move &move2)
+bool Quackle::operator<(const Move &move1, const Move &move2)
{
if (move1.action != move2.action)
return move1.action < move2.action;
@@ -75,7 +75,7 @@ bool operator<(const Move &move1, const Move &move2)
return move1.scoreAddition() < move2.scoreAddition();
if (move1.isChallengedPhoney() != move2.isChallengedPhoney())
return move1.isChallengedPhoney() < move2.isChallengedPhoney();
-
+
return false;
}
@@ -116,7 +116,7 @@ UVString Move::xml() const
bool includeRest = false;
bool includeTiles = false;
bool includeScore = false;
-
+
switch (action)
{
case Pass:
@@ -148,7 +148,7 @@ UVString Move::xml() const
actionString = MARK_UV("place");
UVOStringStream restStream;
-
+
// adding row and column numbers I suppose is bloat
//restStream << "position=\"" << positionString() << "\" startrow=\"" << startrow << "\" startcolumn=\"" << startcol << "\"";
restStream << "position=\"" << positionString() << "\"";
@@ -441,7 +441,7 @@ bool MoveList::scoreComparator(const Move &move1, const Move &move2)
}
return move1.effectiveScore() < move2.effectiveScore();
}
-
+
bool MoveList::alphabeticalComparator(const Move &move1, const Move &move2)
{
if (move1.tiles() == move2.tiles()) {