mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-29 13:20:49 +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 @@
|
|||
|
||||
CLatchButtonArrayTest::CLatchButtonArrayTest()
|
||||
{
|
||||
m_widgetControl = (CWidgetControl *)NULL;
|
||||
m_bgWindow = (CBgWindow *)NULL;
|
||||
m_widgetControl = NULL;
|
||||
m_bgWindow = NULL;
|
||||
}
|
||||
|
||||
// CLatchButtonArrayTest Descriptor
|
||||
|
|
@ -134,7 +134,7 @@ bool CLatchButtonArrayTest::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 @@ CLatchButtonArray *CLatchButtonArrayTest::createButtonArray(void)
|
|||
if (!m_bgWindow->getSize(&windowSize))
|
||||
{
|
||||
printf("CLatchButtonArrayTest::createGraphics: Failed to get window size\n");
|
||||
return (CLatchButtonArray *)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