Author: wim Date: 2010-06-27 11:54:23 +0200 (Sun, 27 Jun 2010) New Revision: 37276 Changeset: http://dev.haiku-os.org/changeset/37276/haiku Modified: haiku/trunk/src/apps/mandelbrot/Mandelbrot.cpp haiku/trunk/src/apps/mandelbrot/tsb.cpp Log: Compiler warning fixes. Modified: haiku/trunk/src/apps/mandelbrot/Mandelbrot.cpp =================================================================== --- haiku/trunk/src/apps/mandelbrot/Mandelbrot.cpp 2010-06-27 09:11:17 UTC (rev 37275) +++ haiku/trunk/src/apps/mandelbrot/Mandelbrot.cpp 2010-06-27 09:54:23 UTC (rev 37276) @@ -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 @@ }; -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"); Modified: haiku/trunk/src/apps/mandelbrot/tsb.cpp =================================================================== --- haiku/trunk/src/apps/mandelbrot/tsb.cpp 2010-06-27 09:11:17 UTC (rev 37275) +++ haiku/trunk/src/apps/mandelbrot/tsb.cpp 2010-06-27 09:54:23 UTC (rev 37276) @@ -94,7 +94,7 @@ 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 @@ 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 @@ long x, y; long bx; double cx, cy; - char v; + int v; uchar *bits = (uchar *)the_bitmap->Bits(); uchar *b0; long y12;