Compiler warning fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37277 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0d29a22888
commit
ca29fe0117
@ -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),
|
: BGLView(rect, name, resizingMode, 0, options),
|
||||||
fHistEntries(0),
|
fHistEntries(0),
|
||||||
fOldestEntry(0),
|
fOldestEntry(0),
|
||||||
|
@ -53,8 +53,8 @@ struct TrackingInfo {
|
|||||||
|
|
||||||
class ObjectView : public BGLView {
|
class ObjectView : public BGLView {
|
||||||
public:
|
public:
|
||||||
ObjectView(BRect rect, char* name, ulong resizingMode,
|
ObjectView(BRect rect, const char* name,
|
||||||
ulong options);
|
ulong resizingMode, ulong options);
|
||||||
~ObjectView();
|
~ObjectView();
|
||||||
|
|
||||||
virtual void MouseDown(BPoint point);
|
virtual void MouseDown(BPoint point);
|
||||||
|
@ -11,8 +11,10 @@
|
|||||||
|
|
||||||
#include "TeapotWindow.h"
|
#include "TeapotWindow.h"
|
||||||
|
|
||||||
TeapotWindow::TeapotWindow(BRect rect, char* name, window_type wt, ulong something)
|
TeapotWindow::TeapotWindow(BRect rect, const char* name, window_type wt,
|
||||||
: BDirectWindow(rect, name, wt, something)
|
ulong something)
|
||||||
|
:
|
||||||
|
BDirectWindow(rect, name, wt, something)
|
||||||
{
|
{
|
||||||
GLenum type = BGL_RGB | BGL_DEPTH | BGL_DOUBLE;
|
GLenum type = BGL_RGB | BGL_DEPTH | BGL_DOUBLE;
|
||||||
|
|
||||||
|
@ -6,13 +6,16 @@
|
|||||||
#ifndef _TEAPOT_WINDOW_
|
#ifndef _TEAPOT_WINDOW_
|
||||||
#define _TEAPOT_WINDOW_
|
#define _TEAPOT_WINDOW_
|
||||||
|
|
||||||
|
|
||||||
#include <DirectWindow.h>
|
#include <DirectWindow.h>
|
||||||
|
|
||||||
#include "ObjectView.h"
|
#include "ObjectView.h"
|
||||||
|
|
||||||
|
|
||||||
class TeapotWindow : public BDirectWindow {
|
class TeapotWindow : public BDirectWindow {
|
||||||
public:
|
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 bool QuitRequested();
|
||||||
virtual void DirectConnected( direct_buffer_info* info );
|
virtual void DirectConnected( direct_buffer_info* info );
|
||||||
@ -21,4 +24,6 @@ class TeapotWindow : public BDirectWindow {
|
|||||||
private:
|
private:
|
||||||
ObjectView* fObjectView;
|
ObjectView* fObjectView;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
fatalerror(char *s)
|
fatalerror(const char *s)
|
||||||
{
|
{
|
||||||
printf("FATAL ERROR: %s\n",s);
|
printf("FATAL ERROR: %s\n",s);
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern void fatalerror(char *);
|
extern void fatalerror(const char *);
|
||||||
|
|
||||||
#define DEBUGGING 1
|
#define DEBUGGING 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user