mirror of https://github.com/axmolengine/axmol.git
4b3525f7a8
* replaced some unordered_map::insert(std::make_pair(foo, bar)) with unordered_map::emplace(foo, bar) * replaced some vector::push_back(std::make_pair(foo, bar)) with vector::emplace_back(foo, bar) The old way will construct a std::pair first then call move constructor when putting it into the container, while using emplace will construct the pair in-place in the container. Also, the emplace way is shorter & more concise. |
||
---|---|---|
.. | ||
PU | ||
CCParticle3DAffector.cpp | ||
CCParticle3DAffector.h | ||
CCParticle3DEmitter.cpp | ||
CCParticle3DEmitter.h | ||
CCParticle3DRender.cpp | ||
CCParticle3DRender.h | ||
CCParticleSystem3D.cpp | ||
CCParticleSystem3D.h |