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. |
||
---|---|---|
.. | ||
CCActionTimeline.cpp | ||
CCActionTimeline.h | ||
CCActionTimelineCache.cpp | ||
CCActionTimelineCache.h | ||
CCActionTimelineNode.cpp | ||
CCActionTimelineNode.h | ||
CCBoneNode.cpp | ||
CCBoneNode.h | ||
CCFrame.cpp | ||
CCFrame.h | ||
CCSkeletonNode.cpp | ||
CCSkeletonNode.h | ||
CCSkinNode.cpp | ||
CCSkinNode.h | ||
CCTimeLine.cpp | ||
CCTimeLine.h | ||
CCTimelineMacro.h | ||
CSLoader.cpp | ||
CSLoader.h |