mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-17 19:51:03 +08:00
Fix uninitialized pointer in CNxTKWindow
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4706 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
c27e15cfc6
commit
9eaedaec1e
@ -26,4 +26,6 @@
|
|||||||
some lesser used feature over time in order to reduce the NxWidgets
|
some lesser used feature over time in order to reduce the NxWidgets
|
||||||
footprint.
|
footprint.
|
||||||
* CNxWidget: Removed support for reference constants and close types.
|
* CNxWidget: Removed support for reference constants and close types.
|
||||||
The goal is to ge the base widget class as small as possible.
|
The goal is to ge the base widget class as small as possible.
|
||||||
|
* CNxTkWindow: Fix uninitialized pointer value.
|
||||||
|
|
||||||
|
@ -66,9 +66,18 @@ using namespace NXWidgets;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
CNxTkWindow::CNxTkWindow(NXHANDLE hNxServer, CWidgetControl *pWidgetControl)
|
CNxTkWindow::CNxTkWindow(NXHANDLE hNxServer, CWidgetControl *pWidgetControl)
|
||||||
: CCallback(pWidgetControl), m_hNxServer(hNxServer), m_hNxTkWindow(0),
|
: CCallback(pWidgetControl)
|
||||||
m_widgetControl(pWidgetControl)
|
|
||||||
{
|
{
|
||||||
|
// Save construction values
|
||||||
|
|
||||||
|
m_hNxServer = hNxServer;
|
||||||
|
m_widgetControl = pWidgetControl;
|
||||||
|
|
||||||
|
// Nullify uninitilized pointers
|
||||||
|
|
||||||
|
m_hNxTkWindow = (NXTKWINDOW )0;
|
||||||
|
m_toolbar = (CNxToolbar *)0;
|
||||||
|
|
||||||
// Create the CGraphicsPort instance for this window
|
// Create the CGraphicsPort instance for this window
|
||||||
|
|
||||||
m_widgetControl->createGraphicsPort(static_cast<INxWindow*>(this));
|
m_widgetControl->createGraphicsPort(static_cast<INxWindow*>(this));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user