Minor coding style fix.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2005-2011, Haiku, Inc. All rights reserved.
|
* Copyright 2005-2012, Haiku, Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT license.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -24,15 +24,16 @@
|
|||||||
|
|
||||||
|
|
||||||
AttributeTextControl::AttributeTextControl(const char* label,
|
AttributeTextControl::AttributeTextControl(const char* label,
|
||||||
const char* attribute)
|
const char* attribute)
|
||||||
:
|
:
|
||||||
BTextControl(NULL, "", NULL),
|
BTextControl(NULL, "", NULL),
|
||||||
fAttribute(attribute),
|
fAttribute(attribute),
|
||||||
fOriginalValue()
|
fOriginalValue()
|
||||||
{
|
{
|
||||||
if (label != NULL && label[0] != 0)
|
if (label != NULL && label[0] != 0) {
|
||||||
SetLabel(BString(B_TRANSLATE("%attribute_label:"))
|
SetLabel(BString(B_TRANSLATE("%attribute_label:"))
|
||||||
.ReplaceFirst("%attribute_label", label));
|
.ReplaceFirst("%attribute_label", label));
|
||||||
|
}
|
||||||
SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT);
|
SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user