fixed some gcc4 warnings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18935 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-09-25 21:49:41 +00:00
parent 3354a9cc67
commit e2ba090e41
4 changed files with 7 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <new.h>
#include <new>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -3,7 +3,8 @@
// by the OpenBeOS license.
//---------------------------------------------------------------------
#include <new.h>
#include <new>
using namespace std;
#include <DiskDevice.h>
#include <DiskDeviceList.h>
@ -305,6 +306,7 @@ BDiskDeviceList::VisitEachMountedPartition(BDiskDeviceVisitor *visitor)
BPartition *partition = NULL;
if (visitor) {
struct MountedPartitionFilter : public PartitionFilter {
virtual ~MountedPartitionFilter() {};
virtual bool Filter(BPartition *partition, int32 level)
{ return partition->IsMounted(); }
} filter;
@ -334,6 +336,7 @@ BDiskDeviceList::VisitEachMountablePartition(BDiskDeviceVisitor *visitor)
BPartition *partition = NULL;
if (visitor) {
struct MountablePartitionFilter : public PartitionFilter {
virtual ~MountablePartitionFilter() {};
virtual bool Filter(BPartition *partition, int32 level)
{ return partition->ContainsFileSystem(); }
} filter;

View File

@ -72,6 +72,7 @@ struct comparator;
class AbstractPointerListHelper {
public:
AbstractPointerListHelper() {};
virtual ~AbstractPointerListHelper() {};
/**
Returns the index of the item that matches key or

View File

@ -104,6 +104,7 @@ class SettingsArgvDispatcher {
// base class for a single setting item
public:
SettingsArgvDispatcher(const char *name);
virtual ~SettingsArgvDispatcher() {};
void SaveSettings(Settings *settings, bool onlyIfNonDefault);