Style fixes to BStringItem
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
|
||||
|
||||
BStringItem::BStringItem(const char* text, uint32 level, bool expanded)
|
||||
: BListItem(level, expanded),
|
||||
:
|
||||
BListItem(level, expanded),
|
||||
fText(NULL),
|
||||
fBaselineOffset(0)
|
||||
{
|
||||
@@ -29,7 +30,8 @@ BStringItem::BStringItem(const char* text, uint32 level, bool expanded)
|
||||
|
||||
|
||||
BStringItem::BStringItem(BMessage* archive)
|
||||
: BListItem(archive),
|
||||
:
|
||||
BListItem(archive),
|
||||
fText(NULL),
|
||||
fBaselineOffset(0)
|
||||
{
|
||||
@@ -56,7 +58,7 @@ BStringItem::Instantiate(BMessage* archive)
|
||||
|
||||
|
||||
status_t
|
||||
BStringItem::Archive(BMessage *archive, bool deep) const
|
||||
BStringItem::Archive(BMessage* archive, bool deep) const
|
||||
{
|
||||
status_t status = BListItem::Archive(archive);
|
||||
|
||||
@@ -68,7 +70,7 @@ BStringItem::Archive(BMessage *archive, bool deep) const
|
||||
|
||||
|
||||
void
|
||||
BStringItem::DrawItem(BView *owner, BRect frame, bool complete)
|
||||
BStringItem::DrawItem(BView* owner, BRect frame, bool complete)
|
||||
{
|
||||
if (fText == NULL)
|
||||
return;
|
||||
@@ -113,7 +115,7 @@ BStringItem::DrawItem(BView *owner, BRect frame, bool complete)
|
||||
|
||||
|
||||
void
|
||||
BStringItem::SetText(const char *text)
|
||||
BStringItem::SetText(const char* text)
|
||||
{
|
||||
free(fText);
|
||||
fText = NULL;
|
||||
@@ -131,7 +133,7 @@ BStringItem::Text() const
|
||||
|
||||
|
||||
void
|
||||
BStringItem::Update(BView *owner, const BFont *font)
|
||||
BStringItem::Update(BView* owner, const BFont* font)
|
||||
{
|
||||
if (fText != NULL) {
|
||||
SetWidth(font->StringWidth(fText)
|
||||
@@ -149,7 +151,7 @@ BStringItem::Update(BView *owner, const BFont *font)
|
||||
|
||||
|
||||
status_t
|
||||
BStringItem::Perform(perform_code d, void *arg)
|
||||
BStringItem::Perform(perform_code d, void* arg)
|
||||
{
|
||||
return BListItem::Perform(d, arg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user