Nebula: Convert fixed length char to BString
This commit is contained in:
@@ -430,12 +430,12 @@ public:
|
|||||||
|
|
||||||
const char* UpdateText() const
|
const char* UpdateText() const
|
||||||
{
|
{
|
||||||
sprintf(fText, "%s: %d", fLabel, Value());
|
fText.SetToFormat("%s: %d", fLabel, Value());
|
||||||
return fText;
|
return fText.String();
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable char fText[32];
|
mutable BString fText;
|
||||||
const char* fLabel;
|
const char* fLabel;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user