1
1
forked from 0ad/0ad
0ad/source/ps/XML
elexis eafd44cfc5 Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127.
a8f48ff7e0 introduced XeroXMB lowercasing of element and attribute names
as a feature.
cf9d8b9797, 4d390f501c, dda6268466 added bugfixes and TODOs because of
that.
f76d0ffdc6, 44fe226dd2 removed the XeroXMB lowercase feature.
This patch removes the lowercasing GUI bugfixes that don't fix any bug
anymore while increasing code complexity and lowering performance
(string copies).

Do not send mouse coordinates objects for events that do not relate to
the mouse.

Store event names in static const members to:
(1) improve performance, ensuring that the CStr is not reconstructed
every call,
(2) obtain compile errors when misspelling event names,
(3) allow reuse of the strings in inherited and friend classes.

Differential Revision: https://code.wildfiregames.com/D2445
Comments by Matei, Philip on 2006-03-11-QuakeNet-#wfg-Meeting-0126.log
and 2006-06-24-QuakeNet-#wfg-Meeting-0139.log

This was SVN commit r23403.
2020-01-15 16:00:37 +00:00
..
tests Fix warnings in vs2015 when building tests. 2019-01-12 16:23:47 +00:00
RelaxNG.cpp Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
RelaxNG.h XML validation. Based on patch by historic_bruno. Refs #245. 2015-06-07 21:56:52 +00:00
Xeromyces.cpp Reliably report and reject invalid XML files following a18fbd12ec, refs #245, fixes #5222. 2019-09-17 23:00:36 +00:00
Xeromyces.h Reliably report and reject invalid XML files following a18fbd12ec, refs #245, fixes #5222. 2019-09-17 23:00:36 +00:00
XeroXMB.cpp Use iterators for XMBAttributeList and XMBElementList. Fixes #3269. 2015-06-01 00:29:35 +00:00
XeroXMB.h Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
XMLWriter.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
XMLWriter.h Fix warnings in vs2015 when building tests. 2019-01-12 16:23:47 +00:00