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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _STATABLE_H
|
#ifndef _STATABLE_H
|
||||||
@@ -17,6 +17,8 @@ class BVolume;
|
|||||||
|
|
||||||
class BStatable {
|
class BStatable {
|
||||||
public:
|
public:
|
||||||
|
virtual ~BStatable();
|
||||||
|
|
||||||
virtual status_t GetStat(struct stat *st) const = 0;
|
virtual status_t GetStat(struct stat *st) const = 0;
|
||||||
|
|
||||||
bool IsFile() const;
|
bool IsFile() const;
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
//----------------------------------------------------------------------
|
/*
|
||||||
// This software is part of the Haiku distribution and is covered
|
* Copyright 2002-2007, Haiku, Inc. All Rights Reserved.
|
||||||
// by the MIT license.
|
* Distributed under the terms of the MIT License.
|
||||||
//---------------------------------------------------------------------
|
*
|
||||||
|
* Authors:
|
||||||
|
* Tyler Dauwalder
|
||||||
|
* Ingo Weinhold, [email protected]
|
||||||
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\file Statable.cpp
|
\file Statable.cpp
|
||||||
BStatable implementation.
|
BStatable implementation.
|
||||||
@@ -14,6 +19,12 @@
|
|||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
|
||||||
|
BStatable::~BStatable()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*! \fn status_t GetStat(struct stat *st) const
|
/*! \fn status_t GetStat(struct stat *st) const
|
||||||
\brief Returns the stat stucture for the node.
|
\brief Returns the stat stucture for the node.
|
||||||
\param st the stat structure to be filled in.
|
\param st the stat structure to be filled in.
|
||||||
|
|||||||
Reference in New Issue
Block a user