Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35555 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,7 +37,8 @@ using namespace std;
|
||||
/*! \brief Creates an unitialized BResources object.
|
||||
*/
|
||||
BResources::BResources()
|
||||
: fFile(),
|
||||
:
|
||||
fFile(),
|
||||
fContainer(NULL),
|
||||
fResourceFile(NULL),
|
||||
fReadOnly(false)
|
||||
@@ -59,7 +60,8 @@ BResources::BResources()
|
||||
\param clobber if \c true, the file's resources are truncated to size 0
|
||||
*/
|
||||
BResources::BResources(const BFile* file, bool clobber)
|
||||
: fFile(),
|
||||
:
|
||||
fFile(),
|
||||
fContainer(NULL),
|
||||
fResourceFile(NULL),
|
||||
fReadOnly(false)
|
||||
@@ -79,7 +81,8 @@ BResources::BResources(const BFile *file, bool clobber)
|
||||
\param clobber if \c true, the file's resources are truncated to size 0
|
||||
*/
|
||||
BResources::BResources(const char* path, bool clobber)
|
||||
: fFile(),
|
||||
:
|
||||
fFile(),
|
||||
fContainer(NULL),
|
||||
fResourceFile(NULL),
|
||||
fReadOnly(false)
|
||||
@@ -99,7 +102,8 @@ BResources::BResources(const char *path, bool clobber)
|
||||
\param clobber if \c true, the file's resources are truncated to size 0
|
||||
*/
|
||||
BResources::BResources(const entry_ref* ref, bool clobber)
|
||||
: fFile(),
|
||||
:
|
||||
fFile(),
|
||||
fContainer(NULL),
|
||||
fResourceFile(NULL),
|
||||
fReadOnly(false)
|
||||
@@ -976,7 +980,8 @@ BResources::FindResource(type_code type, int32 id, size_t *lengthFound)
|
||||
{
|
||||
void* result = NULL;
|
||||
size_t size = 0;
|
||||
if (const void *data = LoadResource(type, id, &size)) {
|
||||
const void* data = LoadResource(type, id, &size);
|
||||
if (data != NULL) {
|
||||
if ((result = malloc(size)))
|
||||
memcpy(result, data, size);
|
||||
}
|
||||
@@ -1002,7 +1007,8 @@ BResources::FindResource(type_code type, const char *name, size_t *lengthFound)
|
||||
{
|
||||
void* result = NULL;
|
||||
size_t size = 0;
|
||||
if (const void *data = LoadResource(type, name, &size)) {
|
||||
const void *data = LoadResource(type, name, &size);
|
||||
if (data != NULL) {
|
||||
if ((result = malloc(size)))
|
||||
memcpy(result, data, size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user