mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-23 14:38:32 +00:00
Remove the unnecessary cast for main_t, NULL and argv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
d6f787afca
commit
b659f0fbdf
100 changed files with 559 additions and 449 deletions
|
|
@ -64,8 +64,8 @@
|
|||
|
||||
CButtonArrayTest::CButtonArrayTest()
|
||||
{
|
||||
m_widgetControl = (CWidgetControl *)NULL;
|
||||
m_bgWindow = (CBgWindow *)NULL;
|
||||
m_widgetControl = NULL;
|
||||
m_bgWindow = NULL;
|
||||
}
|
||||
|
||||
// CButtonArrayTest Descriptor
|
||||
|
|
@ -134,7 +134,7 @@ bool CButtonArrayTest::createWindow(void)
|
|||
{
|
||||
// Initialize the widget control using the default style
|
||||
|
||||
m_widgetControl = new CWidgetControl((CWidgetStyle *)NULL);
|
||||
m_widgetControl = new CWidgetControl(NULL);
|
||||
|
||||
// Get an (uninitialized) instance of the background window as a class
|
||||
// that derives from INxWindow.
|
||||
|
|
@ -171,7 +171,7 @@ CButtonArray *CButtonArrayTest::createButtonArray(void)
|
|||
if (!m_bgWindow->getSize(&windowSize))
|
||||
{
|
||||
printf("CButtonArrayTest::createGraphics: Failed to get window size\n");
|
||||
return (CButtonArray *)NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Pick an X/Y position such that the button array will be centered in the display
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue