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:
@@ -34,7 +34,7 @@ class GLRendererRoster;
|
|||||||
|
|
||||||
class BGLView : public BView {
|
class BGLView : public BView {
|
||||||
public:
|
public:
|
||||||
BGLView(BRect rect, char *name,
|
BGLView(BRect rect, const char *name,
|
||||||
ulong resizingMode, ulong mode,
|
ulong resizingMode, ulong mode,
|
||||||
ulong options);
|
ulong options);
|
||||||
virtual ~BGLView();
|
virtual ~BGLView();
|
||||||
@@ -119,7 +119,7 @@ private:
|
|||||||
|
|
||||||
class BGLScreen : public BWindowScreen {
|
class BGLScreen : public BWindowScreen {
|
||||||
public:
|
public:
|
||||||
BGLScreen(char *name,
|
BGLScreen(const char *name,
|
||||||
ulong screenMode, ulong options,
|
ulong screenMode, ulong options,
|
||||||
status_t *error, bool debug=false);
|
status_t *error, bool debug=false);
|
||||||
~BGLScreen();
|
~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)
|
ulong options)
|
||||||
: BView(rect, name, B_FOLLOW_ALL_SIDES, mode | B_WILL_DRAW | B_FRAME_EVENTS), // | B_FULL_UPDATE_ON_RESIZE)
|
: BView(rect, name, B_FOLLOW_ALL_SIDES, mode | B_WILL_DRAW | B_FRAME_EVENTS), // | B_FULL_UPDATE_ON_RESIZE)
|
||||||
fGc(NULL),
|
fGc(NULL),
|
||||||
@@ -462,7 +462,7 @@ BGLView &BGLView::operator=(const BGLView &v)
|
|||||||
|
|
||||||
// TODO: implement BGLScreen class...
|
// 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)
|
status_t *error, bool debug)
|
||||||
: BWindowScreen(name, screenMode, error, 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];
|
char buffer[512];
|
||||||
va_list arg;
|
va_list arg;
|
||||||
|
|||||||
Reference in New Issue
Block a user