diff options
author | christos <christos@NetBSD.org> | 2005-08-09 02:38:32 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2005-08-09 02:38:32 +0000 |
commit | d6237184f66652f05e744b26749cb40605e3af0b (patch) | |
tree | c1033279b12797fa0a684e660daf9e4ed281531d /dab/board.cc | |
parent | a38a988e1c270bda5e561359772f96eeb81357cd (diff) | |
download | bsdgames-darwin-d6237184f66652f05e744b26749cb40605e3af0b.tar.gz bsdgames-darwin-d6237184f66652f05e744b26749cb40605e3af0b.tar.zst bsdgames-darwin-d6237184f66652f05e744b26749cb40605e3af0b.zip |
Pass WARNS=3
Diffstat (limited to 'dab/board.cc')
-rw-r--r-- | dab/board.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dab/board.cc b/dab/board.cc index 6cd3e957..dcded524 100644 --- a/dab/board.cc +++ b/dab/board.cc @@ -1,4 +1,4 @@ -/* $NetBSD: board.cc,v 1.1 2003/12/27 01:16:55 christos Exp $ */ +/* $NetBSD: board.cc,v 1.2 2005/08/09 02:38:32 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -40,7 +40,7 @@ * board.C: Board manipulations */ #include "defs.h" -RCSID("$NetBSD: board.cc,v 1.1 2003/12/27 01:16:55 christos Exp $") +RCSID("$NetBSD: board.cc,v 1.2 2005/08/09 02:38:32 christos Exp $") #include <stdio.h> #include <string.h> @@ -154,7 +154,7 @@ int BOARD::full(void) const { for (size_t y = 0; y < _ny; y++) for (size_t x = 0; x < _nx; x++) { - BOX box(y, x, (BOARD&) *this); + BOX box(y, x, const_cast<BOARD&>(*this)); if (box.count() != 4) return 0; } @@ -173,7 +173,7 @@ void BOARD::paint(void) const { for (size_t y = 0; y < _ny; y++) for (size_t x = 0; x < _nx; x++) { - BOX box(y, x, (BOARD&) *this); + BOX box(y, x, const_cast<BOARD&>(*this)); box.paint(); } } |