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:
@@ -8,7 +8,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <new.h>
|
#include <new>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
// by the OpenBeOS license.
|
// by the OpenBeOS license.
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
#include <new.h>
|
#include <new>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
#include <DiskDevice.h>
|
#include <DiskDevice.h>
|
||||||
#include <DiskDeviceList.h>
|
#include <DiskDeviceList.h>
|
||||||
@@ -305,6 +306,7 @@ BDiskDeviceList::VisitEachMountedPartition(BDiskDeviceVisitor *visitor)
|
|||||||
BPartition *partition = NULL;
|
BPartition *partition = NULL;
|
||||||
if (visitor) {
|
if (visitor) {
|
||||||
struct MountedPartitionFilter : public PartitionFilter {
|
struct MountedPartitionFilter : public PartitionFilter {
|
||||||
|
virtual ~MountedPartitionFilter() {};
|
||||||
virtual bool Filter(BPartition *partition, int32 level)
|
virtual bool Filter(BPartition *partition, int32 level)
|
||||||
{ return partition->IsMounted(); }
|
{ return partition->IsMounted(); }
|
||||||
} filter;
|
} filter;
|
||||||
@@ -334,6 +336,7 @@ BDiskDeviceList::VisitEachMountablePartition(BDiskDeviceVisitor *visitor)
|
|||||||
BPartition *partition = NULL;
|
BPartition *partition = NULL;
|
||||||
if (visitor) {
|
if (visitor) {
|
||||||
struct MountablePartitionFilter : public PartitionFilter {
|
struct MountablePartitionFilter : public PartitionFilter {
|
||||||
|
virtual ~MountablePartitionFilter() {};
|
||||||
virtual bool Filter(BPartition *partition, int32 level)
|
virtual bool Filter(BPartition *partition, int32 level)
|
||||||
{ return partition->ContainsFileSystem(); }
|
{ return partition->ContainsFileSystem(); }
|
||||||
} filter;
|
} filter;
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ struct comparator;
|
|||||||
class AbstractPointerListHelper {
|
class AbstractPointerListHelper {
|
||||||
public:
|
public:
|
||||||
AbstractPointerListHelper() {};
|
AbstractPointerListHelper() {};
|
||||||
|
virtual ~AbstractPointerListHelper() {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the index of the item that matches key or
|
Returns the index of the item that matches key or
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ class SettingsArgvDispatcher {
|
|||||||
// base class for a single setting item
|
// base class for a single setting item
|
||||||
public:
|
public:
|
||||||
SettingsArgvDispatcher(const char *name);
|
SettingsArgvDispatcher(const char *name);
|
||||||
|
virtual ~SettingsArgvDispatcher() {};
|
||||||
|
|
||||||
void SaveSettings(Settings *settings, bool onlyIfNonDefault);
|
void SaveSettings(Settings *settings, bool onlyIfNonDefault);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user