WonderBrush Translator: fix warnings
src/add-ons/translators/wonderbrush/WonderBrushView.cpp: In constructor 'WonderBrushView::WonderBrushView(const BRect&, const char*, uint32, uint32, TranslatorSettings*)': src/add-ons/translators/wonderbrush/WonderBrushView.cpp:58:8: warning: variable 'xbold' set but not used [-Wunused-but-set-variable] src/add-ons/translators/wonderbrush/WonderBrushView.cpp:58:15: warning: variable 'ybold' set but not used [-Wunused-but-set-variable] src/add-ons/translators/wonderbrush/WonderBrushView.cpp:64:8: warning: variable 'yplain' set but not used [-Wunused-but-set-variable]
This commit is contained in:
parent
3d286f4454
commit
8c660dab60
@ -52,18 +52,6 @@ WonderBrushView::WonderBrushView(const BRect &frame, const char *name,
|
||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||
SetLowColor(ViewColor());
|
||||
|
||||
// figure out where the text ends
|
||||
font_height fh;
|
||||
be_bold_font->GetHeight(&fh);
|
||||
float xbold, ybold;
|
||||
xbold = fh.descent + 1;
|
||||
ybold = fh.ascent + fh.descent * 2 + fh.leading;
|
||||
|
||||
font_height plainh;
|
||||
be_plain_font->GetHeight(&plainh);
|
||||
float yplain;
|
||||
yplain = plainh.ascent + plainh.descent * 2 + plainh.leading;
|
||||
|
||||
ResizeToPreferred();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user