Fixed BGLView constructor: name string argument wasn't qualified constant!
Fixed GCC4 warnings in GLInfo. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32267 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
414b3c9459
commit
bb1fc73715
@ -34,7 +34,7 @@ class GLRendererRoster;
|
||||
|
||||
class BGLView : public BView {
|
||||
public:
|
||||
BGLView(BRect rect, char *name,
|
||||
BGLView(BRect rect, const char *name,
|
||||
ulong resizingMode, ulong mode,
|
||||
ulong options);
|
||||
virtual ~BGLView();
|
||||
@ -119,7 +119,7 @@ private:
|
||||
|
||||
class BGLScreen : public BWindowScreen {
|
||||
public:
|
||||
BGLScreen(char *name,
|
||||
BGLScreen(const char *name,
|
||||
ulong screenMode, ulong options,
|
||||
status_t *error, bool debug=false);
|
||||
~BGLScreen();
|
||||
|
@ -55,7 +55,7 @@ struct glview_direct_info {
|
||||
};
|
||||
|
||||
|
||||
BGLView::BGLView(BRect rect, char *name, ulong resizingMode, ulong mode,
|
||||
BGLView::BGLView(BRect rect, const char *name, ulong resizingMode, ulong mode,
|
||||
ulong options)
|
||||
: BView(rect, name, B_FOLLOW_ALL_SIDES, mode | B_WILL_DRAW | B_FRAME_EVENTS), // | B_FULL_UPDATE_ON_RESIZE)
|
||||
fGc(NULL),
|
||||
@ -462,7 +462,7 @@ BGLView &BGLView::operator=(const BGLView &v)
|
||||
|
||||
// TODO: implement BGLScreen class...
|
||||
|
||||
BGLScreen::BGLScreen(char *name, ulong screenMode, ulong options,
|
||||
BGLScreen::BGLScreen(const char *name, ulong screenMode, ulong options,
|
||||
status_t *error, bool debug)
|
||||
: BWindowScreen(name, screenMode, error, debug)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ private:
|
||||
};
|
||||
|
||||
|
||||
void AddItem(BListView *list, int level, char *text, ...)
|
||||
void AddItem(BListView *list, int level, const char *text, ...)
|
||||
{
|
||||
char buffer[512];
|
||||
va_list arg;
|
||||
|
Loading…
Reference in New Issue
Block a user