gtkradiant/radiant
Thomas Debesse 8aeff6b09a Do not do using namespace std to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.

It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.

This also makes the code future proof if the STL decides
to define some other types with common name.

This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.

```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
  132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
      |                                            ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
                 from /usr/include/c++/11/bits/char_traits.h:39,
                 from /usr/include/c++/11/ios:40,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from libs/missing.h:76,
                 from radiant/qe3.h:40,
                 from radiant/stdafx.h:39,
                 from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
  404 |   enum class byte : unsigned char;
      |                              ^~~~
```
2022-07-14 17:18:51 +02:00
..
bp_dlg.cpp Left align for the text of Labels 2017-03-28 09:29:11 +02:00
brush.cpp Alpha blending in camera view for SURF_TRANS_100 and SURF_ALPHA_TEST. 2020-12-16 21:55:09 -05:00
brush.h make bool/qboolean/boolean *slightly* less wonky 2012-05-27 20:17:32 -05:00
brush_primit.cpp Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
brushscript.cpp More gtk i81n 2017-03-16 12:40:56 +01:00
camera.h Add smooth camera movement for non-discrete movement code path. 2020-11-11 12:31:34 -05:00
camwindow.cpp Fix gcc8 compilation issue on Linux. 2021-03-01 17:15:41 -05:00
camwindow.h Improved mousewheel zoom-in 2014-03-24 06:57:46 +04:00
csg.cpp Explicit type instead auto 2017-08-26 01:39:24 +02:00
dialog.cpp Remove obsolete DLG_ENTRY_FLOAT and DLG_ENTRY_INT 2017-05-22 12:23:09 +02:00
dialog.h Remove obsolete DLG_ENTRY_FLOAT and DLG_ENTRY_INT 2017-05-22 12:23:09 +02:00
dialoginfo.cpp Dialog improvements 2017-03-23 09:37:50 +01:00
drag.cpp Use Str instead of CString 2018-02-28 10:11:53 +01:00
eclass.cpp preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
eclass_def.cpp angle pointer by entity definition 2018-01-27 00:54:01 +01:00
eclass_def.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
error.cpp Fixes 485 2019-11-02 11:16:22 -07:00
feedback.cpp More gtk i81n 2017-03-16 12:40:56 +01:00
feedback.h fix crashes: libxml2 static linking, turn off libintl stuff 2013-06-03 03:23:11 +01:00
file.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
file.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
filters.cpp Add a filter for Quetoo's CONTENTS_ATMOSPHERIC. 2022-01-24 20:24:02 -05:00
filters.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
findtexturedialog.cpp Merge branch 'deprchild' of git://github.com/Pan7/GtkRadiant into Pan7-deprchild 2017-04-16 21:11:31 -05:00
findtexturedialog.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
glinterface.cpp Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
glwidget.cpp Replacing deprecated GTK functions 2017-03-15 11:58:36 +01:00
glwidget.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
glwindow.cpp Remove deprecated Gtk1 support 2017-06-23 15:49:39 +02:00
glwindow.h Improved mousewheel zoom-in 2014-03-24 06:57:46 +04:00
groupdialog.cpp Prevent users from deleting the classname key in entity dialog 2017-06-16 21:21:49 -05:00
groupdialog.h Replace deprecated GtkSignalFunc, gtk_container_children 2017-04-03 19:26:13 +02:00
gtkdlgs.cpp Allow negative light values 2018-02-25 17:03:47 +01:00
gtkmisc.cpp preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
gtkmisc.h Merge branch 'openurl' of https://github.com/Pan7/GtkRadiant into Pan7-openurl 2017-04-22 13:05:52 -05:00
main.cpp preproc: more unknown architecture error 2017-08-31 00:45:30 +02:00
mainframe.cpp Do not do using namespace std to avoid type conflict 2022-07-14 17:18:51 +02:00
mainframe.h Do not do using namespace std to avoid type conflict 2022-07-14 17:18:51 +02:00
Makefile.mac
map.cpp preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
map.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
missing.cpp preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
parse.cpp Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
parse.h Low hanging fruit: bring the number of compiler warnings down from 264 to 33. 2013-05-03 02:57:29 -04:00
patchdialog.cpp Clear Surface Property combobox on update 2018-02-25 00:09:11 +01:00
patchdialog.h Use GTK2 events 2017-03-04 18:36:21 +01:00
plugin.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
pluginentities.cpp preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
pluginmanager.cpp Do not do using namespace std to avoid type conflict 2022-07-14 17:18:51 +02:00
pluginmanager.h Do not do using namespace std to avoid type conflict 2022-07-14 17:18:51 +02:00
pmesh.cpp Do not do using namespace std to avoid type conflict 2022-07-14 17:18:51 +02:00
points.cpp GL Display lists were used regardless of display list settings in points.cpp, this crashes with some Intel videodrivers 2015-07-23 22:03:52 +03:00
points.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
preferences.cpp Do not do using namespace std to avoid type conflict 2022-07-14 17:18:51 +02:00
preferences.h Do not do using namespace std to avoid type conflict 2022-07-14 17:18:51 +02:00
profile.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
qe3.cpp Use Gtk theme default text color for console. 2019-02-23 11:15:33 -05:00
qe3.h cleanup more offsetof usage 2018-01-22 08:43:48 -06:00
qedefs.h Add a filter for Quetoo's CONTENTS_ATMOSPHERIC. 2022-01-24 20:24:02 -05:00
qfiles.h Add a filter for Quetoo's CONTENTS_ATMOSPHERIC. 2022-01-24 20:24:02 -05:00
qgl.c preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
qgl.h preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
qgl_ext.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
queuedraw.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
radiant.ico pulled in updates from ttimo branch 2012-04-26 13:40:42 -04:00
radiant.rc
radiant.vcxproj Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also. 2018-01-21 14:47:06 -06:00
radiant.vcxproj.filters convert projects to msvc 2012 2013-05-23 20:44:41 -05:00
resource.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
select.cpp Enough. 2017-05-05 23:38:07 +02:00
select.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
selectedface.cpp Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
stdafx.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
stdafx.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
surfacedialog.cpp Left align for the text of Labels 2017-03-28 09:29:11 +02:00
surfacedialog.h cosmetic - this code isn't used anyway, surface inspector logic has moved to a plugin? 2013-07-07 08:08:38 -05:00
surfaceplugin.cpp Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
surfaceplugin.h add license info on a few things 2012-06-04 23:42:31 -05:00
targetname.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
texmanip.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
texmanip.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
textures.h Texture directory list 2017-05-02 02:15:35 +02:00
texwindow.cpp Don't set shader flags on idTech2 faces. 2020-11-02 22:55:22 -05:00
texwindow.h Improved mousewheel zoom-in 2014-03-24 06:57:46 +04:00
ui.cpp Replacing deprecated GTK functions 2017-03-15 11:58:36 +01:00
ui.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
undo.cpp Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
undo.h make bool/qboolean/boolean *slightly* less wonky 2012-05-27 20:17:32 -05:00
vertsel.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
watchbsp.cpp preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
watchbsp.h Fix umpteen fails in the BSP monitoring state management. Probably introduce 1 or 2 new ones. 2013-11-19 21:15:06 -05:00
winding.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
winding.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
xmlstuff.h fix crashes: libxml2 static linking, turn off libintl stuff 2013-06-03 03:23:11 +01:00
xywindow.cpp fix compile warning 2017-08-20 15:46:40 -05:00
xywindow.h Improved mousewheel zoom-in 2014-03-24 06:57:46 +04:00
z.cpp uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
z.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
zwindow.cpp Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
zwindow.h uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00