hopefully fixed build and warnings for bug #142
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16370 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7be5a254fa
commit
a8df1e6494
@ -146,7 +146,7 @@ BackgroundImage::_GetImages(BDirectory& directory, BMessage& container)
|
||||
|
||||
char *buffer = new (nothrow) char [info.size];
|
||||
if (buffer == NULL)
|
||||
return NULL;
|
||||
return B_NO_MEMORY;
|
||||
|
||||
status = directory.ReadAttr(B_BACKGROUND_INFO, info.type,
|
||||
0, buffer, (size_t)info.size);
|
||||
|
@ -34,7 +34,8 @@ All rights reserved.
|
||||
#ifndef BACKGROUND_IMAGE_H
|
||||
#define BACKGROUND_IMAGE_H
|
||||
|
||||
|
||||
#include <Message.h>
|
||||
#include <Point.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
class BDirectory;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "ShowImageSettings.h"
|
||||
|
||||
#include <Application.h>
|
||||
#include <FilePanel.h>
|
||||
|
||||
|
||||
class ShowImageApp : public BApplication {
|
||||
|
@ -29,6 +29,7 @@
|
||||
#ifndef _ShowImageSettings_H
|
||||
#define _ShowImageSettings_H
|
||||
|
||||
#include <File.h>
|
||||
#include <Message.h>
|
||||
#include <Locker.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user