Compiler warning fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37277 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Wim van der Meer 2010-06-27 10:17:50 +00:00
parent 0d29a22888
commit ca29fe0117
6 changed files with 19 additions and 11 deletions

View File

@ -127,7 +127,8 @@ simonThread(void* cookie)
}
ObjectView::ObjectView(BRect rect, char *name, ulong resizingMode, ulong options)
ObjectView::ObjectView(BRect rect, const char *name, ulong resizingMode,
ulong options)
: BGLView(rect, name, resizingMode, 0, options),
fHistEntries(0),
fOldestEntry(0),

View File

@ -53,8 +53,8 @@ struct TrackingInfo {
class ObjectView : public BGLView {
public:
ObjectView(BRect rect, char* name, ulong resizingMode,
ulong options);
ObjectView(BRect rect, const char* name,
ulong resizingMode, ulong options);
~ObjectView();
virtual void MouseDown(BPoint point);

View File

@ -11,8 +11,10 @@
#include "TeapotWindow.h"
TeapotWindow::TeapotWindow(BRect rect, char* name, window_type wt, ulong something)
: BDirectWindow(rect, name, wt, something)
TeapotWindow::TeapotWindow(BRect rect, const char* name, window_type wt,
ulong something)
:
BDirectWindow(rect, name, wt, something)
{
GLenum type = BGL_RGB | BGL_DEPTH | BGL_DOUBLE;

View File

@ -6,19 +6,24 @@
#ifndef _TEAPOT_WINDOW_
#define _TEAPOT_WINDOW_
#include <DirectWindow.h>
#include "ObjectView.h"
class TeapotWindow : public BDirectWindow {
public:
TeapotWindow(BRect r, char* name, window_type wt, ulong something);
TeapotWindow(BRect r, const char* name, window_type wt,
ulong something);
virtual bool QuitRequested();
virtual void DirectConnected( direct_buffer_info* info );
virtual void MessageReceived(BMessage* msg);
virtual bool QuitRequested();
virtual void DirectConnected( direct_buffer_info* info );
virtual void MessageReceived(BMessage* msg);
private:
ObjectView* fObjectView;
};
#endif

View File

@ -6,7 +6,7 @@
#include "error.h"
void
fatalerror(char *s)
fatalerror(const char *s)
{
printf("FATAL ERROR: %s\n",s);
}

View File

@ -8,7 +8,7 @@
#include <stdio.h>
extern void fatalerror(char *);
extern void fatalerror(const char *);
#define DEBUGGING 1