std::string s(""); s = ""; calls the copy constructor, which in turn calls strlen(), … assigning a default-constructed string generates fewer instructions and is therefore preferred. With C++11 uniform initialization, you’d simply write s = { } instead. |
||
---|---|---|
.. | ||
3DSConverter.cpp | ||
3DSExporter.cpp | ||
3DSExporter.h | ||
3DSHelper.h | ||
3DSLoader.cpp | ||
3DSLoader.h |