Remove the unnecessary cast for main_t, NULL and argv

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-10-16 01:55:16 +08:00
committed by Petro Karashchenko
parent d6f787afca
commit b659f0fbdf
100 changed files with 559 additions and 449 deletions

View File

@@ -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