gcc 3 fixes

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shadow303
2003-08-04 00:46:53 +00:00
parent 72f334d12f
commit 17e6de7a37
33 changed files with 112 additions and 109 deletions
@@ -15,7 +15,7 @@
#include <SupportDefs.h>
#include <list>
#include <pair.h>
#include <utility>
struct entry_ref;
class BMessage;
+5 -5
View File
@@ -39,11 +39,6 @@ public:
status_t DeleteSnifferRule(const char *type);
void PrintToStream() const;
private:
status_t BuildRuleList();
status_t GuessMimeType(BPositionIO *data, BString *type);
ssize_t MaxBytesNeeded();
status_t ProcessType(const char *type, ssize_t *bytesNeeded);
struct sniffer_rule {
std::string type; // The mime type that own the rule
@@ -53,6 +48,11 @@ private:
sniffer_rule(BPrivate::Storage::Sniffer::Rule *rule = NULL);
~sniffer_rule();
};
private:
status_t BuildRuleList();
status_t GuessMimeType(BPositionIO *data, BString *type);
ssize_t MaxBytesNeeded();
status_t ProcessType(const char *type, ssize_t *bytesNeeded);
std::list<sniffer_rule> fRuleList;
ssize_t fMaxBytesNeeded;