From 230fd426a93e950397411ae43e978f5fa985a4b8 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 24 Aug 2009 18:48:57 +0000 Subject: [PATCH] fix gcc4 warnings (+alphabranch) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32658 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/poorman/PoorManView.cpp | 2 +- src/apps/poorman/PoorManView.h | 2 +- src/apps/poorman/StatusSlider.cpp | 2 +- src/apps/poorman/StatusSlider.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/poorman/PoorManView.cpp b/src/apps/poorman/PoorManView.cpp index f18a7679e0..492162c9b6 100644 --- a/src/apps/poorman/PoorManView.cpp +++ b/src/apps/poorman/PoorManView.cpp @@ -9,7 +9,7 @@ #include "PoorManView.h" #endif -PoorManView::PoorManView(BRect rect, char *name) +PoorManView::PoorManView(BRect rect, const char *name) : BView(rect, name, B_FOLLOW_ALL, B_WILL_DRAW ) { } diff --git a/src/apps/poorman/PoorManView.h b/src/apps/poorman/PoorManView.h index 24faa2b6dd..724dcadeb6 100644 --- a/src/apps/poorman/PoorManView.h +++ b/src/apps/poorman/PoorManView.h @@ -15,7 +15,7 @@ class PoorManView: public BView { public: - PoorManView(BRect, char *name); + PoorManView(BRect, const char *name); virtual void AttachedToWindow(); }; diff --git a/src/apps/poorman/StatusSlider.cpp b/src/apps/poorman/StatusSlider.cpp index a0725e174a..deaa1b03a1 100644 --- a/src/apps/poorman/StatusSlider.cpp +++ b/src/apps/poorman/StatusSlider.cpp @@ -31,7 +31,7 @@ StatusSlider::StatusSlider (BRect frame, temp = str; } -char* +const char* StatusSlider::UpdateText() const { diff --git a/src/apps/poorman/StatusSlider.h b/src/apps/poorman/StatusSlider.h index ae02fc73c0..b9003d7ccc 100644 --- a/src/apps/poorman/StatusSlider.h +++ b/src/apps/poorman/StatusSlider.h @@ -23,7 +23,7 @@ public: BMessage *message, int32 minValue, int32 maxValue); -virtual char* UpdateText() const; +virtual const char* UpdateText() const; private: char * StatusPrefix; char * temp;