TextSnifferAddon: Move includes out of namespaces
This commit is contained in:
@@ -11,15 +11,18 @@
|
||||
#include <mime/DatabaseLocation.h>
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
namespace Storage {
|
||||
namespace Mime {
|
||||
using BPrivate::Storage::Mime::DatabaseLocation;
|
||||
|
||||
|
||||
static int file_ascmagic(DatabaseLocation* databaseLocation,
|
||||
const unsigned char *buf, size_t nbytes, BMimeType* mimeType);
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
namespace Storage {
|
||||
namespace Mime {
|
||||
|
||||
|
||||
// constructor
|
||||
TextSnifferAddon::TextSnifferAddon(DatabaseLocation* databaseLocation)
|
||||
:
|
||||
@@ -65,6 +68,11 @@ TextSnifferAddon::GuessMimeType(BFile* file, const void* buffer, int32 length,
|
||||
}
|
||||
|
||||
|
||||
} // namespace Mime
|
||||
} // namespace Storage
|
||||
} // namespace BPrivate
|
||||
|
||||
|
||||
// #pragma mark - ascmagic.c from the BSD file tool
|
||||
/*
|
||||
* The following code has been taken from version 4.17 of the BSD file tool,
|
||||
@@ -708,8 +716,3 @@ from_ebcdic(const unsigned char *buf, size_t nbytes, unsigned char *out)
|
||||
out[i] = ebcdic_to_ascii[buf[i]];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace Mime
|
||||
} // namespace Storage
|
||||
} // namespace BPrivate
|
||||
|
||||
Reference in New Issue
Block a user