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:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ TTimeEdit::DrawSeparator(uint32 index)
|
||||
BRect bounds = section->Frame();
|
||||
float sepWidth = SeparatorWidth();
|
||||
|
||||
char* sep = ":";
|
||||
const char* sep = ":";
|
||||
if (index == 2)
|
||||
sep = "-";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user