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