This is a combination of running clang-tidy with modernize-use-nullptr
check for some ports (GTK, X11, OSX) and manual changes to the ports for
which it couldn't be used easily (MSW, DFB) and also manually updating
the docs.
Also replace NULL with null or nullptr in the comments as this is more
consistent with the use of nullptr in the code and makes it simpler to
grep for the remaining occurrences of NULL itself.
And also use null in the assert messages.
Only a few occurrences of "NULL" are still left in non-C files, mostly
corresponding to unclear comments or string output which it might not be
safe to change.
This function not only doesn't exist, but seems to never have existed at
all.
Not really sure what happened here, but we definitely don't need to
document it any more.
This is not needed any longer since we don't need wxQsort() in
wx/vector.h any more after eb97bf90e4 (Remove custom wxVector
implementation, 2022-10-11).
This is a big and incompatible change but, arguably, is still worth
making because it makes wxMSW behaviour similar to that of wxOSX and
wxGTK when using Wayland.
Do document it prominently and also document MSWDisableComposited() as
it will probably end up being used in quite a lot of existing code.
This is ugly but allows the carts to be visible while they're being
dragged again under MSW.
The game still doesn't work at all under GTK/Wayland (and probably
macOS).
ImageList_BeginDrag() doesn't seem to be compatible with the use of
WS_EX_COMPOSITED, so turn it off when using it.
We probably could turn it back on again in EndDrag(), but for now keep
things simple and just fix the regression which resulted in wxDragImage
not working at all any more since d4ced54755 (Merge branch
'msw-double-buffer', 2022-10-15).
This function will need to be used from other places too, so make it
available in the base class itself.
Also disable WS_EX_COMPOSITED for this window itself too.
Remove the port files and references to it from the common headers and
elsewhere.
Also remove GPE (GNOME PDA Environment) support as libgpewidget is
unmaintained since 2006 or so and has never been really used.
Use __WXGTK__ to test for any version of wxGTK now. Still define
__WXGTK20__ for compatibility, but always define it now and don't test
for it in the library code.
This port hasn't been updated for ages and is not used by anybody any
longer, so remove its code to facilitate maintenance.
Also remove references to this port from the documentation and most of
the other places (VMS-specific descrip.vms files still check for it
because it's not clear how to update them all), including configure.
Regenerate the latter and rebake all makefiles.
Finally document that this port is not available any longer.
This header uses wxBitmapBundle but didn't declare it, resulting in
compilation errors if wx/bmpbndl.h hadn't been included before it.
Add a forward declaration of wxBitmapBundle to this header to fix this.
Closes#22875.
It seems wrong to request an immediate update here and this results in a
problem since the changes of d4ced54755 (Merge branch
'msw-double-buffer', 2022-10-15) as OnPaint() was called before the
background style was set to wxBG_STYLE_PAINT in Create(), resulting in a
fatal assert failure.
See #22876.
Pass the correct module path, i.e. the path to a shared library and not
the main executable, if this is where the address is located, and adjust
it by the module offset to make addr2line actually work for us instead
of just always returning "??:0".
Remove autoexp.inc, this format is no longer supported by MSVC.
Merge wxWidgets.2013.natvis with wxWidgets.natvis.
Remove wxVector<> visualizer as it's not used any more and is just a
synonym for std::vector<> now.
Testing this class doesn't make much sense any more as it's just a
typedef for std::vector and we can presumably rely on the standard class
working as expected.
Always use std::unordered_{map,set} when we use them at all, don't
bother with checking for their availability and with tr1 or even older
alternatives.
We could, and probably should, set target-level property on wx libraries
instead, but we'll have to increase the minimum required CMake version
to 3.8 in order to be able to do it.
Simplify the code checking for _MSC_VER or __VISUALC__ or using
wxCHECK_VISUALC_VERSION() macro (which is not very useful any longer,
but keep it in case we need it again in the future).
Member template functions are supported by all current compilers as they
are already used in other places without any problems, so there is no
need to test for this.