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:
Stefano Ceccherini 2008-10-01 08:17:34 +00:00
parent a1830cbd57
commit 60097e8433

View File

@ -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();
}