Add wxRESERVED_PARAM symbolic constant and use it instead of 0

This is more readable than just using "0" or "NULL" and shorter than
writing a comment every time.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-01-09 21:31:41 +01:00
parent 1ebfda6d89
commit 24c7baa07e
8 changed files with 28 additions and 28 deletions

View File

@@ -665,7 +665,7 @@ size_t wxDialUpManagerMSW::GetISPNames(wxArrayString& names) const
{
dwRet = ms_pfnRasEnumEntries
(
NULL, // reserved
wxRESERVED_PARAM,
NULL, // default phone book (or all)
rasEntries, // [out] buffer for the entries
&size, // [in/out] size of the buffer
@@ -963,7 +963,7 @@ bool wxDialUpManagerMSW::IsAlwaysOnline() const
if ( pfnInternetGetConnectedState )
{
DWORD flags = 0;
if ( pfnInternetGetConnectedState(&flags, 0 /* reserved */) )
if ( pfnInternetGetConnectedState(&flags, wxRESERVED_PARAM) )
{
// there is some connection to the net, see of which type
isAlwaysOnline = (flags & (INTERNET_CONNECTION_LAN |