Added virtual desctructor to calm down GCC 4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21021 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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, [email protected]
|
||||
*/
|
||||
|
||||
/*!
|
||||
\file Statable.cpp
|
||||
BStatable implementation.
|
||||
@@ -14,6 +19,12 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user