Age | Commit message (Collapse) | Author |
|
The last use was for storing a list of memory blocks. As the way these lists are accessed is very
specific, it is easier to just write an explicit destructor instead of trying to exactly match the behaviour.
|
|
instead of an AutoFreeSmallVector.
|
|
AutoDeleteSmallVector obsolete.
DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use
of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate
copy-free code for most situations.
|
|
|
|
Auto[Free|Delete]SmallVector
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::vector::[push|emplace]_back()
|
|
|
|
|
|
|
|
|
|
|
|
std::vector::erase()
|
|
std::vector::erase()
|
|
The use of std::none_of in network/core/host.cpp is driven by the non-const
comparison operator use by NetworkAddress. A future commit should address
the const_casts in that class to ensure const-correctness.
|
|
|
|
shrink_to_fit()
|
|
|
|
|
|
|
|
|
|
|
|
The public and protected interface to SmallVector are unchanged
SmallVector now requires that items be default constructible
This isn't an issue since some contained items were previously created
uninitialized.
Temporary default constructors are added to the following structs
- SmallPair
- SmallStackItem
- GRFPresence
Where vector<bool> is required, transition immediately to std::vector
to avoid returning proxy object references.
|
|
position in a SmallVec.
|
|
class.
|
|
are available for all selected vehicles. Also add a generic list item to refit while keeping the subtypes of individual vehicles.
|
|
be implicit template specialisations. (adf88)
|
|
|
|
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
|
|
|
|
|
|
|
|
causing invalid memory reads / double free
|
|
|
|
|
|
|
|
about
|
|
with one call.
|
|
it's used quite often in the code
-Revert (r18637): it's not needed any more
|
|
|
|
|
|
|
|
|
|
only if anyway
|
|
(content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.
|