elexis
3028551b91
Introduce MOVABLE idiom indicating that a class can use move semantics. Make values of CGUI struct maps holding XML data const to ensure at the root that the data is not modified. Use NONCOPYABLE and MOVABLE for SGUIIcon and SGUIStyle to enforce the non-copy policy on the compiler level (until someone changes the GUI design to make modifications needed). As indicated by that: Replace copy operations by in place move operations for these CGUI struct maps in the CGUI Xeromyces XML loading functions. Replace copy operations by const references for CSize and SGUIIcon in CGUIString::GenerateTextCall and CGUI::GenerateText. This avoids copying of non primitive members, such as the strings and containers of strings. Further related cleanup to be kept separated for auditability. Differential Revision: https://code.wildfiregames.com/D2163 Few comments on IRC by: wraitii, Itms Tested on: gcc 9, Jenkins, partially VS2015 Refs #1984, NONCOPYABLE CGUISpriteInstances: |
||
---|---|---|
.. | ||
collada | ||
graphics | ||
gui | ||
i18n | ||
lib | ||
lobby | ||
maths | ||
mocks | ||
network | ||
pch | ||
ps | ||
renderer | ||
scriptinterface | ||
simulation2 | ||
soundmanager | ||
third_party | ||
tools | ||
main.cpp | ||
test_setup.cpp |