diff options
Diffstat (limited to 'c++/demo.cc')
| -rw-r--r-- | c++/demo.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/c++/demo.cc b/c++/demo.cc index 7d300ff38b4e..182784513474 100644 --- a/c++/demo.cc +++ b/c++/demo.cc @@ -1,6 +1,6 @@ // * This makes emacs happy -*-Mode: C++;-*- /**************************************************************************** - * Copyright 2018-2021,2023 Thomas E. Dickey * + * Copyright 2018-2023,2025 Thomas E. Dickey * * Copyright 1998-2012,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -36,7 +36,7 @@ * Demo code for NCursesMenu and NCursesForm written by * Juergen Pfeifer * - * $Id: demo.cc,v 1.52 2023/08/26 19:14:14 tom Exp $ + * $Id: demo.cc,v 1.53 2025/01/25 21:21:05 tom Exp $ */ #include "internal.h" @@ -174,7 +174,7 @@ template<class T> class NCURSES_CXX_IMPEXP MyAction : public NCursesUserItem<Use public: MyAction (const char* p_name, const T* p_UserData) - : NCursesUserItem<T>(p_name, static_cast<const char*>(0), p_UserData) + : NCursesUserItem<T>(p_name, static_cast<const char*>(NULL), p_UserData) {} virtual ~MyAction() THROWS(NCursesException) {} @@ -244,10 +244,10 @@ private: public: TestForm() : NCursesForm(13, 51, (lines() - 15)/2, (cols() - 53)/2), - F(0), - mft(0), - ift(0), - eft(0) + F(NULL), + mft(NULL), + ift(NULL), + eft(NULL) { F = new NCursesFormField*[10]; @@ -289,7 +289,7 @@ public: } TestForm(const TestForm& rhs) - : NCursesForm(rhs), F(0), mft(0), ift(0), eft(0) + : NCursesForm(rhs), F(NULL), mft(NULL), ift(NULL), eft(NULL) { } @@ -438,7 +438,7 @@ private: public: MyMenu () : NCursesMenu (n_items+2, 8, (lines()-10)/2, (cols()-10)/2), - P(0), I(0), u(0) + P(NULL), I(NULL), u(NULL) { u = new UserData(1); I = new NCursesMenuItem*[1+n_items]; @@ -467,7 +467,7 @@ public: } MyMenu(const MyMenu& rhs) - : NCursesMenu(rhs), P(0), I(0), u(0) + : NCursesMenu(rhs), P(NULL), I(NULL), u(NULL) { } |
