* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31375 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-07-02 15:33:06 +00:00
parent 02b73236ae
commit 1b3303e7ee
+13 -9
View File
@@ -1,24 +1,23 @@
/*
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
* Copyright 2007-2009, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Julun <[email protected]>
*/
#include "CalendarView.h"
#include <stdlib.h>
#include <Window.h>
#include <stdlib.h>
namespace BPrivate {
namespace {
float
FontHeight(const BView *view)
{
@@ -31,12 +30,14 @@ namespace {
font.GetHeight(&fheight);
return ceilf(fheight.ascent + fheight.descent + fheight.leading);
}
}
} // private namespace
BCalendarView::BCalendarView(BRect frame, const char *name,
uint32 resizeMask, uint32 flags)
: BView(frame, name, resizeMask, flags),
:
BView(frame, name, resizeMask, flags),
BInvoker(),
fSelectionMessage(NULL),
fDay(0),
@@ -54,7 +55,8 @@ BCalendarView::BCalendarView(BRect frame, const char *name,
BCalendarView::BCalendarView(BRect frame, const char *name, week_start start,
uint32 resizeMask, uint32 flags)
: BView(frame, name, resizeMask, flags),
:
BView(frame, name, resizeMask, flags),
BInvoker(),
fSelectionMessage(NULL),
fDay(0),
@@ -77,7 +79,8 @@ BCalendarView::~BCalendarView()
BCalendarView::BCalendarView(BMessage *archive)
: BView(archive),
:
BView(archive),
BInvoker(),
fSelectionMessage(NULL),
fDay(0),
@@ -335,6 +338,7 @@ BCalendarView::MakeFocus(bool state)
BView::MakeFocus(state);
// TODO: solve this better
fFocusChanged = true;
Draw(_RectOfDay(fFocusedDay));
fFocusChanged = false;