Fixed some coding style issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22002 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3e5ede51ed
commit
5d19a6e65c
@ -394,23 +394,23 @@ FontSelectionView::Revert()
|
||||
bool
|
||||
FontSelectionView::IsDefaultable()
|
||||
{
|
||||
font_family default_family;
|
||||
font_style default_style;
|
||||
float default_size;
|
||||
font_family defaultFamily;
|
||||
font_style defaultStyle;
|
||||
float defaultSize;
|
||||
|
||||
if (_get_system_default_font_(Name(), default_family, default_style, &default_size) != B_OK)
|
||||
if (_get_system_default_font_(Name(), defaultFamily, defaultStyle, &defaultSize) != B_OK)
|
||||
return false;
|
||||
|
||||
font_family current_family;
|
||||
font_style current_style;
|
||||
float current_size;
|
||||
font_family currentFamily;
|
||||
font_style currentStyle;
|
||||
float currentSize;
|
||||
|
||||
fCurrentFont.GetFamilyAndStyle(¤t_family, ¤t_style);
|
||||
current_size = fCurrentFont.Size();
|
||||
fCurrentFont.GetFamilyAndStyle(¤tFamily, ¤tStyle);
|
||||
currentSize = fCurrentFont.Size();
|
||||
|
||||
return strcmp(current_family, default_family) != 0
|
||||
|| strcmp(current_style, default_style) != 0
|
||||
|| current_size != default_size;
|
||||
return strcmp(currentFamily, defaultFamily) != 0
|
||||
|| strcmp(currentStyle, defaultStyle) != 0
|
||||
|| currentSize != defaultSize;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user