From 641cee441f5da1d55d0ceb42c4f6a8486cef2f21 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 14 May 2006 03:21:52 +0000 Subject: add virtual destructors so that g++ shuts up. --- dab/algor.h | 3 ++- dab/player.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'dab') diff --git a/dab/algor.h b/dab/algor.h index af0be629..24f438d0 100644 --- a/dab/algor.h +++ b/dab/algor.h @@ -1,4 +1,4 @@ -/* $NetBSD: algor.h,v 1.2 2005/08/09 02:38:32 christos Exp $ */ +/* $NetBSD: algor.h,v 1.3 2006/05/14 03:21:52 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -51,6 +51,7 @@ class BOX; class ALGOR : public PLAYER { public: ALGOR(const char c); + virtual ~ALGOR() {} // Return a proposed move in (y, x, dir) void play(const BOARD& b, size_t& y, size_t& x, int& dir); diff --git a/dab/player.h b/dab/player.h index 514b9b77..0000c926 100644 --- a/dab/player.h +++ b/dab/player.h @@ -1,4 +1,4 @@ -/* $NetBSD: player.h,v 1.1.1.1 2003/12/26 17:57:03 christos Exp $ */ +/* $NetBSD: player.h,v 1.2 2006/05/14 03:21:52 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -49,6 +49,7 @@ class BOARD; class PLAYER { public: PLAYER(char who); + virtual ~PLAYER() {} virtual void play(const BOARD& b, size_t& y, size_t& x, int& dir) = 0; // Helper functions -- cgit v1.2.3-56-ge451