From e5bc3cb9b465ab2e988fa89d139782da81c513dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 4 May 2007 16:59:23 +0000 Subject: [PATCH] Added virtual desctructor to calm down GCC 4. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21021 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/storage/Statable.h | 4 +++- src/kits/storage/Statable.cpp | 19 +++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/headers/os/storage/Statable.h b/headers/os/storage/Statable.h index cf4e0c2604..4dcb4bd5d1 100644 --- a/headers/os/storage/Statable.h +++ b/headers/os/storage/Statable.h @@ -1,5 +1,5 @@ /* - * Copyright 2002-2006, Haiku, Inc. All Rights Reserved. + * Copyright 2002-2007, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _STATABLE_H @@ -17,6 +17,8 @@ class BVolume; class BStatable { public: + virtual ~BStatable(); + virtual status_t GetStat(struct stat *st) const = 0; bool IsFile() const; diff --git a/src/kits/storage/Statable.cpp b/src/kits/storage/Statable.cpp index 4063f7f3f2..57acb7771a 100644 --- a/src/kits/storage/Statable.cpp +++ b/src/kits/storage/Statable.cpp @@ -1,7 +1,12 @@ -//---------------------------------------------------------------------- -// This software is part of the Haiku distribution and is covered -// by the MIT license. -//--------------------------------------------------------------------- +/* + * Copyright 2002-2007, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Tyler Dauwalder + * Ingo Weinhold, bonefish@users.sf.net + */ + /*! \file Statable.cpp BStatable implementation. @@ -14,6 +19,12 @@ #include + +BStatable::~BStatable() +{ +} + + /*! \fn status_t GetStat(struct stat *st) const \brief Returns the stat stucture for the node. \param st the stat structure to be filled in.