Opened 11 years ago

Last modified 11 years ago

#10421 closed enhancement

Optimization haiku\src\apps\clock\cl_view.cpp — at Version 1

Reported by: vinion Owned by: nobody
Priority: low Milestone: R1
Component: Applications/Clock Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by diver)

The method

BArchivable *
TOnscreenView::Instantiate(BMessage *data)
{
	if (!validate_instantiation(data, "TOnscreenView"))
		return NULL;
	return new TOnscreenView(data);
}

can be replaced with

BArchivable *
TOnscreenView::Instantiate(BMessage *data)
{
	return !validate_instantiation(data, "TOnscreenView") ? NULL : new TOnscreenView(data);
}

Change History (1)

comment:1 by diver, 11 years ago

Description: modified (diff)
Version: R1/alpha4R1/Development
Note: See TracTickets for help on using tickets.