Opened 11 years ago

Last modified 11 years ago

#10421 closed enhancement

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

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

Description

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 (0)

Note: See TracTickets for help on using tickets.