Fix warning: deprecated conversion from string constant to 'char*'.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32709 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2009-08-26 13:24:59 +00:00
parent 241dbd3785
commit fbe95ad458
7 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@
#include <Path.h>
AlertView::AlertView(BRect frame, char *name)
AlertView::AlertView(BRect frame, const char *name)
: BView(frame, name, B_FOLLOW_ALL, B_WILL_DRAW | B_PULSE_NEEDED),
// we will wait 12 seconds until we send a message
fSeconds(12)

View File

@ -20,7 +20,7 @@ class BStringView;
class AlertView : public BView {
public:
AlertView(BRect frame, char* name);
AlertView(BRect frame, const char* name);
virtual void AttachedToWindow();
virtual void Draw(BRect updateRect);

View File

@ -20,7 +20,7 @@
#include "Constants.h"
MonitorView::MonitorView(BRect rect, char *name, int32 width, int32 height)
MonitorView::MonitorView(BRect rect, const char *name, int32 width, int32 height)
: BView(rect, name, B_FOLLOW_ALL, B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE),
fMaxWidth(1920),
fMaxHeight(1200),

View File

@ -17,7 +17,7 @@
class MonitorView : public BView {
public:
MonitorView(BRect frame, char* name,
MonitorView(BRect frame, const char* name,
int32 screenWidth, int32 screenHeight);
virtual ~MonitorView();

View File

@ -170,7 +170,7 @@ TTimeEdit::DrawSeparator(uint32 index)
BRect bounds = section->Frame();
float sepWidth = SeparatorWidth();
char* sep = ":";
const char* sep = ":";
if (index == 2)
sep = "-";

View File

@ -123,7 +123,7 @@ TTZDisplay::SetTime(int32 hour, int32 minute)
if (ahour == 0)
ahour = 12;
char *ap = "AM";
const char *ap = "AM";
if (hour > 11)
ap = "PM";

View File

@ -58,7 +58,7 @@ byte_string(int64 size)
if (value < 1024)
snprintf(string, sizeof(string), "%Ld B", size);
else {
char *units[] = {"K", "M", "G", NULL};
const char *units[] = {"K", "M", "G", NULL};
int32 i = -1;
do {