From 261a29594bef9e25d6325eac2e1c9197f7ba5fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 16 Apr 2008 20:11:54 +0000 Subject: [PATCH] Applied patch by Artur Wyszynski: * Added virtual destructor to BRefFilter in case the GCC version is 3 or newer (can't do it for GCC 2.95.3, since that would break binary compatibility AFAIKT) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24986 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/storage/FilePanel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headers/os/storage/FilePanel.h b/headers/os/storage/FilePanel.h index f65fa296c4..f6a0e34998 100644 --- a/headers/os/storage/FilePanel.h +++ b/headers/os/storage/FilePanel.h @@ -18,6 +18,9 @@ struct stat; class BRefFilter { public: +#if (GCC_VERSION >= 3000) + virtual ~BRefFilter() {}; +#endif virtual bool Filter(const entry_ref* ref, BNode* node, struct stat* stat, const char* mimeType) = 0; };