diff options
author | christos <christos@NetBSD.org> | 2006-05-14 03:21:52 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2006-05-14 03:21:52 +0000 |
commit | 641cee441f5da1d55d0ceb42c4f6a8486cef2f21 (patch) | |
tree | 988caa0a5253f8a9bb53825e4db9e2aa7178ed3f /dab | |
parent | 695ddc44ddb57d8fd3de6c101fb48228de204833 (diff) | |
download | bsdgames-darwin-641cee441f5da1d55d0ceb42c4f6a8486cef2f21.tar.gz bsdgames-darwin-641cee441f5da1d55d0ceb42c4f6a8486cef2f21.tar.zst bsdgames-darwin-641cee441f5da1d55d0ceb42c4f6a8486cef2f21.zip |
add virtual destructors so that g++ shuts up.
Diffstat (limited to 'dab')
-rw-r--r-- | dab/algor.h | 3 | ||||
-rw-r--r-- | dab/player.h | 3 |
2 files changed, 4 insertions, 2 deletions
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 |