From d6237184f66652f05e744b26749cb40605e3af0b Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 9 Aug 2005 02:38:32 +0000 Subject: Pass WARNS=3 --- dab/board.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dab/board.cc') 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 #include @@ -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(*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(*this)); box.paint(); } } -- cgit v1.2.3-56-ge451