fixed gcc4 warnings. BSlider::UpdateText() actually returns a const char *, not a char *
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27813 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a1830cbd57
commit
60097e8433
@ -39,7 +39,7 @@ class SizeSlider : public BSlider {
|
||||
BMessage* message, int32 min, int32 max, uint32 resizingMode);
|
||||
virtual ~SizeSlider();
|
||||
|
||||
virtual char* UpdateText() const;
|
||||
virtual const char* UpdateText() const;
|
||||
|
||||
private:
|
||||
mutable BString fText;
|
||||
@ -91,12 +91,12 @@ SizeSlider::~SizeSlider()
|
||||
}
|
||||
|
||||
|
||||
char *
|
||||
const char *
|
||||
SizeSlider::UpdateText() const
|
||||
{
|
||||
fText = byte_string(Value() * kMegaByte);
|
||||
|
||||
return const_cast<char*>(fText.String());
|
||||
return fText.String();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user