1
0
forked from 0ad/0ad
0ad/source/gui
Yves 1a66f510d0 Use const T& for parameters of some types in script-exposed native functions
Using references matches the C++ coding style better and should improve
performance a bit in theory. It avoids 2 copies of T in case of the
functions registered with RegisterFunction (mainy used in the GUI). It
should also avoid one or two copies in case of
DEFINE_INTERFACE_METHOD_X, which is used in the simulation, but I
haven't bothered to count it there exactly.
It is now predefined which types have to be passed by const reference
and which are passed by value. Note that references can't be used as
out-parameters (to return multiple values to JS). This hasn't worked
before either and probably never will.

This was SVN commit r17696.
2016-01-23 15:17:56 +00:00
..
scripting Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
tests Start phasing out the use of CParser in the GUI. Makes GUI parsing generally faster and stricter while adding better tests and debug information. 2014-05-25 03:16:52 +00:00
CButton.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CButton.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CCheckBox.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CCheckBox.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CDropDown.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
CDropDown.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUI.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
CGUI.h Handle double-clicks on list elements better. Patch by elexis. 2015-11-16 18:23:21 +00:00
CGUIList.h Add GPL header 2009-04-18 17:00:33 +00:00
CGUIScrollBarVertical.cpp Fix #3415. Removes 'ghost' scrollbar bounding to enable extreme-right hover and selection in dropdowns. Patch by elexis. 2015-10-31 05:40:43 +00:00
CGUIScrollBarVertical.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUISprite.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUISprite.h Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
CImage.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CImage.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CInput.cpp Remove disabled by default SDL1 support. 2015-12-14 10:52:21 +00:00
CInput.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CList.cpp I should not commit half-finished debug code. 2015-11-16 18:48:05 +00:00
CList.h Handle double-clicks on list elements better. Patch by elexis. 2015-11-16 18:23:21 +00:00
COList.cpp Specify the default column sorting order in XML instead of JS. 2016-01-18 19:23:14 +00:00
COList.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CProgressBar.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CProgressBar.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CRadioButton.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CRadioButton.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CText.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CText.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CTooltip.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CTooltip.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUI.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIbase.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIbase.h Handle double-clicks on list elements better. Patch by elexis. 2015-11-16 18:23:21 +00:00
GUIManager.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIManager.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIRenderer.cpp Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
GUIRenderer.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUItext.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUItext.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUITooltip.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUITooltip.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUItypes.h Fix #402 (Clean up GUItypes.h), based on patch from Caius 2009-11-19 21:44:19 +00:00
GUIutil.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIutil.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIButtonBehavior.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIButtonBehavior.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIObject.cpp Use explicit types instead of auto. 2016-01-13 00:42:55 +00:00
IGUIObject.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBar.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBar.h Fix #3415. Removes 'ghost' scrollbar bounding to enable extreme-right hover and selection in dropdowns. Patch by elexis. 2015-10-31 05:40:43 +00:00
IGUIScrollBarOwner.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBarOwner.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUITextOwner.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUITextOwner.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
MiniMap.cpp Constify Spatial.h a bit. 2016-01-13 00:20:22 +00:00
MiniMap.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00