0ad/source
leper 74c420f658 GUI code cleanup. Fixes #3354.
Lots of code style fixes:
 * type [*&]varname -> type[*&] varname
 * else
   if (...)
   ->
   else if (...)
 * Spaces around some ops.
 * i++ -> ++i.
 * switch-case style fixes.
 * Indentation fixes.
 * Removing some commented out code.
 * include header sorting
 * Changed multiple pointer var declarations to be one per line.
 * Removed strange spaces in some places.
 * Changed some include header guards to be consistent with the rest of
the codebase.
 * Use UNUSED() instead of UNUSED2().

Some small code fixes:
 * Using .find() instead of .count() == 0.
 * !.empty() instead of .size() == 0.
 * Range-based for loops.
 * Making some member functions const by small changes.
   * Adds GetScrollBarPos(idx) const for this.
 * Using early returns/continues in some places.
 * Uses size_t for some loops in CList and COList.
 * Removes unused heading element (not attribute) from COList.
 * Use ENSURE in one case where some custom code did something similar.
 * Made some parameters const ptrs/refs.
 * Change removal loop in GUItext.cpp to erase-unique.
 * Made some static things const.
 * Allow iterating over children of IGUIObject with range-based for
loops by
   exposing begin() and end() (rename from ChildrenIt{Begin,End}()) and
use it.

Comments:
 * Comment COList.
 * Update a few comments.
 * Remove useless or duplicated comments.

This was SVN commit r16931.
2015-08-21 17:08:41 +00:00
..
collada Removes use of 'register' storage class, deprecated in C++11. Fixes -Wdeprecated-register build warnings in clang, fixes #3068. 2015-06-02 03:20:04 +00:00
graphics Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
gui GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
i18n L10n code cleanup. 2015-07-29 23:44:05 +00:00
lib Revert emplace for associative containers. Fixes #3366. 2015-08-19 03:32:47 +00:00
lobby Revert emplace for associative containers. Fixes #3366. 2015-08-19 03:32:47 +00:00
maths New long-range pathfinder. 2015-06-12 18:58:24 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Revert emplace for associative containers. Fixes #3366. 2015-08-19 03:32:47 +00:00
pch Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ps Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
renderer Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
scriptinterface Use in-place construction. 2015-07-29 23:44:17 +00:00
simulation2 Some range-based for loops. 2015-08-20 12:58:41 +00:00
soundmanager Some range-based for loops and some style cleanup. 2015-07-29 01:07:23 +00:00
third_party Fix some issues found by static analysis (clang-analyzer and cppcheck). 2015-06-21 18:46:31 +00:00
tools Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
main.cpp Optionally limit the framerate in menus to 50 FPS, to save power. Patch by elexis, fixes #2882 2015-08-20 13:22:44 +00:00
test_setup.cpp CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00