From 0d29a22888c233b0ee5e31ea21b56796c33b9a5a Mon Sep 17 00:00:00 2001 From: Wim van der Meer Date: Sun, 27 Jun 2010 09:54:23 +0000 Subject: [PATCH] Compiler warning fixes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37276 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mandelbrot/Mandelbrot.cpp | 5 +++-- src/apps/mandelbrot/tsb.cpp | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/apps/mandelbrot/Mandelbrot.cpp b/src/apps/mandelbrot/Mandelbrot.cpp index 954cd4d431..aaa0220cde 100644 --- a/src/apps/mandelbrot/Mandelbrot.cpp +++ b/src/apps/mandelbrot/Mandelbrot.cpp @@ -29,7 +29,7 @@ class TMainWindow : public BWindow { public: - TMainWindow(BRect bound, char* name, window_type type, + TMainWindow(BRect bound, const char* name, window_type type, long flags); 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) { BMenuBar* menuBar = new BMenuBar(BRect(0, 0, 1000, 15), "MB"); diff --git a/src/apps/mandelbrot/tsb.cpp b/src/apps/mandelbrot/tsb.cpp index 51aa8e814d..c77b9a8f93 100644 --- a/src/apps/mandelbrot/tsb.cpp +++ b/src/apps/mandelbrot/tsb.cpp @@ -94,7 +94,7 @@ void TShowBit::set_iter(long it) void TShowBit::set_palette(long code) { - rgb_color c; + rgb_color c = {0, 0, 0, 255}; long i; BScreen screen( Window() ); @@ -327,7 +327,7 @@ void TShowBit::mandb(double vx, double vy, double sx, double sy) long x, y; long bx; double cx, cy; - char v; + int v; uchar *bits = (uchar *)the_bitmap->Bits(); uchar *b0; long y12; @@ -390,7 +390,7 @@ void TShowBit::manda(double vx, double vy, double sx, double sy) long x, y; long bx; double cx, cy; - char v; + int v; uchar *bits = (uchar *)the_bitmap->Bits(); uchar *b0; long y12;