Compiler warning fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37276 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
class TMainWindow : public BWindow {
|
class TMainWindow : public BWindow {
|
||||||
public:
|
public:
|
||||||
TMainWindow(BRect bound, char* name, window_type type,
|
TMainWindow(BRect bound, const char* name, window_type type,
|
||||||
long flags);
|
long flags);
|
||||||
virtual ~TMainWindow();
|
virtual ~TMainWindow();
|
||||||
|
|
||||||
@@ -44,7 +44,8 @@ class TMainWindow : public BWindow {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
TMainWindow::TMainWindow(BRect bound, char* name, window_type type, long flags)
|
TMainWindow::TMainWindow(BRect bound, const char* name, window_type type,
|
||||||
|
long flags)
|
||||||
: BWindow(bound, name, type, flags)
|
: BWindow(bound, name, type, flags)
|
||||||
{
|
{
|
||||||
BMenuBar* menuBar = new BMenuBar(BRect(0, 0, 1000, 15), "MB");
|
BMenuBar* menuBar = new BMenuBar(BRect(0, 0, 1000, 15), "MB");
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ void TShowBit::set_iter(long it)
|
|||||||
|
|
||||||
void TShowBit::set_palette(long code)
|
void TShowBit::set_palette(long code)
|
||||||
{
|
{
|
||||||
rgb_color c;
|
rgb_color c = {0, 0, 0, 255};
|
||||||
long i;
|
long i;
|
||||||
|
|
||||||
BScreen screen( Window() );
|
BScreen screen( Window() );
|
||||||
@@ -327,7 +327,7 @@ void TShowBit::mandb(double vx, double vy, double sx, double sy)
|
|||||||
long x, y;
|
long x, y;
|
||||||
long bx;
|
long bx;
|
||||||
double cx, cy;
|
double cx, cy;
|
||||||
char v;
|
int v;
|
||||||
uchar *bits = (uchar *)the_bitmap->Bits();
|
uchar *bits = (uchar *)the_bitmap->Bits();
|
||||||
uchar *b0;
|
uchar *b0;
|
||||||
long y12;
|
long y12;
|
||||||
@@ -390,7 +390,7 @@ void TShowBit::manda(double vx, double vy, double sx, double sy)
|
|||||||
long x, y;
|
long x, y;
|
||||||
long bx;
|
long bx;
|
||||||
double cx, cy;
|
double cx, cy;
|
||||||
char v;
|
int v;
|
||||||
uchar *bits = (uchar *)the_bitmap->Bits();
|
uchar *bits = (uchar *)the_bitmap->Bits();
|
||||||
uchar *b0;
|
uchar *b0;
|
||||||
long y12;
|
long y12;
|
||||||
|
|||||||
Reference in New Issue
Block a user