Improve code style

Also fix compile error on c++23
This commit is contained in:
halx99 2022-10-06 21:32:20 +08:00
parent f2a20bd7cc
commit 4602a67c8a
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#include "UserData.h"
#include "UserData.h"
DRAGONBONES_NAMESPACE_BEGIN
@ -36,7 +36,7 @@ float UserData::getFloat(unsigned index) const
std::string UserData::getString(unsigned index) const
{
return index < strings.size() ? strings[index] : 0;
return index < strings.size() ? strings[index] : std::string{};
}
void ActionData::_onClear()