Author: wim Date: 2010-06-27 12:17:50 +0200 (Sun, 27 Jun 2010) New Revision: 37277 Changeset: http://dev.haiku-os.org/changeset/37277/haiku Modified: haiku/trunk/src/apps/glteapot/ObjectView.cpp haiku/trunk/src/apps/glteapot/ObjectView.h haiku/trunk/src/apps/glteapot/TeapotWindow.cpp haiku/trunk/src/apps/glteapot/TeapotWindow.h haiku/trunk/src/apps/glteapot/error.cpp haiku/trunk/src/apps/glteapot/error.h Log: Compiler warning fixes. Modified: haiku/trunk/src/apps/glteapot/ObjectView.cpp =================================================================== --- haiku/trunk/src/apps/glteapot/ObjectView.cpp 2010-06-27 09:54:23 UTC (rev 37276) +++ haiku/trunk/src/apps/glteapot/ObjectView.cpp 2010-06-27 10:17:50 UTC (rev 37277) @@ -127,7 +127,8 @@ } -ObjectView::ObjectView(BRect rect, char *name, ulong resizingMode, ulong options) +ObjectView::ObjectView(BRect rect, const char *name, ulong resizingMode, + ulong options) : BGLView(rect, name, resizingMode, 0, options), fHistEntries(0), fOldestEntry(0), Modified: haiku/trunk/src/apps/glteapot/ObjectView.h =================================================================== --- haiku/trunk/src/apps/glteapot/ObjectView.h 2010-06-27 09:54:23 UTC (rev 37276) +++ haiku/trunk/src/apps/glteapot/ObjectView.h 2010-06-27 10:17:50 UTC (rev 37277) @@ -53,8 +53,8 @@ class ObjectView : public BGLView { public: - ObjectView(BRect rect, char* name, ulong resizingMode, - ulong options); + ObjectView(BRect rect, const char* name, + ulong resizingMode, ulong options); ~ObjectView(); virtual void MouseDown(BPoint point); Modified: haiku/trunk/src/apps/glteapot/TeapotWindow.cpp =================================================================== --- haiku/trunk/src/apps/glteapot/TeapotWindow.cpp 2010-06-27 09:54:23 UTC (rev 37276) +++ haiku/trunk/src/apps/glteapot/TeapotWindow.cpp 2010-06-27 10:17:50 UTC (rev 37277) @@ -11,8 +11,10 @@ #include "TeapotWindow.h" -TeapotWindow::TeapotWindow(BRect rect, char* name, window_type wt, ulong something) - : BDirectWindow(rect, name, wt, something) +TeapotWindow::TeapotWindow(BRect rect, const char* name, window_type wt, + ulong something) + : + BDirectWindow(rect, name, wt, something) { GLenum type = BGL_RGB | BGL_DEPTH | BGL_DOUBLE; Modified: haiku/trunk/src/apps/glteapot/TeapotWindow.h =================================================================== --- haiku/trunk/src/apps/glteapot/TeapotWindow.h 2010-06-27 09:54:23 UTC (rev 37276) +++ haiku/trunk/src/apps/glteapot/TeapotWindow.h 2010-06-27 10:17:50 UTC (rev 37277) @@ -6,19 +6,24 @@ #ifndef _TEAPOT_WINDOW_ #define _TEAPOT_WINDOW_ + #include <DirectWindow.h> #include "ObjectView.h" + class TeapotWindow : public BDirectWindow { public: - TeapotWindow(BRect r, char* name, window_type wt, ulong something); + TeapotWindow(BRect r, const char* name, window_type wt, + ulong something); - virtual bool QuitRequested(); - virtual void DirectConnected( direct_buffer_info* info ); - virtual void MessageReceived(BMessage* msg); + virtual bool QuitRequested(); + virtual void DirectConnected( direct_buffer_info* info ); + virtual void MessageReceived(BMessage* msg); private: ObjectView* fObjectView; }; + + #endif Modified: haiku/trunk/src/apps/glteapot/error.cpp =================================================================== --- haiku/trunk/src/apps/glteapot/error.cpp 2010-06-27 09:54:23 UTC (rev 37276) +++ haiku/trunk/src/apps/glteapot/error.cpp 2010-06-27 10:17:50 UTC (rev 37277) @@ -6,7 +6,7 @@ #include "error.h" void -fatalerror(char *s) +fatalerror(const char *s) { printf("FATAL ERROR: %s\n",s); } Modified: haiku/trunk/src/apps/glteapot/error.h =================================================================== --- haiku/trunk/src/apps/glteapot/error.h 2010-06-27 09:54:23 UTC (rev 37276) +++ haiku/trunk/src/apps/glteapot/error.h 2010-06-27 10:17:50 UTC (rev 37277) @@ -8,7 +8,7 @@ #include <stdio.h> -extern void fatalerror(char *); +extern void fatalerror(const char *); #define DEBUGGING 1