Fix gcc4 warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32443 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1068,7 +1068,7 @@ ChartWindow::FrameResized(float new_width, float new_height)
|
|||||||
/* loop through the window list of the application, looking for
|
/* loop through the window list of the application, looking for
|
||||||
a window with a specified name. */
|
a window with a specified name. */
|
||||||
BWindow *
|
BWindow *
|
||||||
ChartWindow::GetAppWindow(char *name)
|
ChartWindow::GetAppWindow(const char *name)
|
||||||
{
|
{
|
||||||
int32 index;
|
int32 index;
|
||||||
BWindow *window;
|
BWindow *window;
|
||||||
@@ -1179,19 +1179,15 @@ ChartWindow::OpenColorPalette(BPoint here)
|
|||||||
void
|
void
|
||||||
ChartWindow::OpenStarDensity(BPoint here)
|
ChartWindow::OpenStarDensity(BPoint here)
|
||||||
{
|
{
|
||||||
BRect frame;
|
BWindow *window = GetAppWindow("Star density");
|
||||||
BSlider *slider;
|
|
||||||
BWindow *window;
|
|
||||||
|
|
||||||
window = GetAppWindow("Star density");
|
|
||||||
if (window == NULL) {
|
if (window == NULL) {
|
||||||
frame.Set(here.x, here.y, here.x + STAR_DENSITY_H-1, here.y + STAR_DENSITY_V-1);
|
BRect frame(here.x, here.y, here.x + STAR_DENSITY_H-1, here.y + STAR_DENSITY_V-1);
|
||||||
window = new BWindow(frame, "Star density",
|
window = new BWindow(frame, "Star density",
|
||||||
B_FLOATING_WINDOW_LOOK,
|
B_FLOATING_WINDOW_LOOK,
|
||||||
B_FLOATING_APP_WINDOW_FEEL,
|
B_FLOATING_APP_WINDOW_FEEL,
|
||||||
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_WILL_ACCEPT_FIRST_CLICK);
|
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_WILL_ACCEPT_FIRST_CLICK);
|
||||||
frame.OffsetTo(0.0, 0.0);
|
frame.OffsetTo(0.0, 0.0);
|
||||||
slider = new BSlider(frame, "", NULL, new BMessage(STAR_DENSITY_MSG),
|
BSlider *slider = new BSlider(frame, "", NULL, new BMessage(STAR_DENSITY_MSG),
|
||||||
STAR_DENSITY_MIN, STAR_DENSITY_MAX);
|
STAR_DENSITY_MIN, STAR_DENSITY_MAX);
|
||||||
slider->SetViewColor(background_color);
|
slider->SetViewColor(background_color);
|
||||||
slider->SetTarget(NULL, this);
|
slider->SetTarget(NULL, this);
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ private:
|
|||||||
BView *fTopView;
|
BView *fTopView;
|
||||||
|
|
||||||
/* Find a window by its name if already opened. */
|
/* Find a window by its name if already opened. */
|
||||||
static BWindow *GetAppWindow(char *name);
|
static BWindow *GetAppWindow(const char *name);
|
||||||
/* Used to set the content of PictureButton. */
|
/* Used to set the content of PictureButton. */
|
||||||
BPicture *ButtonPicture(bool active, int32 button_type);
|
BPicture *ButtonPicture(bool active, int32 button_type);
|
||||||
/* Those function create and handle the other settings
|
/* Those function create and handle the other settings
|
||||||
|
|||||||
Reference in New Issue
Block a user