mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 09:32:38 +08:00
Remove some format rule (#10919)
* remove some rules * format all codes with new format rule
This commit is contained in:
@@ -2,47 +2,38 @@
|
||||
|
||||
DRAGONBONES_NAMESPACE_BEGIN
|
||||
|
||||
void UserData::_onClear()
|
||||
{
|
||||
void UserData::_onClear() {
|
||||
ints.clear();
|
||||
floats.clear();
|
||||
strings.clear();
|
||||
}
|
||||
|
||||
void UserData::addInt(int value)
|
||||
{
|
||||
void UserData::addInt(int value) {
|
||||
ints.push_back(value);
|
||||
}
|
||||
|
||||
void UserData::addFloat(float value)
|
||||
{
|
||||
void UserData::addFloat(float value) {
|
||||
floats.push_back(value);
|
||||
}
|
||||
|
||||
void UserData::addString(std::string value)
|
||||
{
|
||||
void UserData::addString(std::string value) {
|
||||
strings.push_back(value);
|
||||
}
|
||||
|
||||
int UserData::getInt(unsigned index) const
|
||||
{
|
||||
int UserData::getInt(unsigned index) const {
|
||||
return index < ints.size() ? ints[index] : 0;
|
||||
}
|
||||
|
||||
float UserData::getFloat(unsigned index) const
|
||||
{
|
||||
float UserData::getFloat(unsigned index) const {
|
||||
return index < floats.size() ? floats[index] : 0;
|
||||
}
|
||||
|
||||
std::string UserData::getString(unsigned index) const
|
||||
{
|
||||
std::string UserData::getString(unsigned index) const {
|
||||
return index < strings.size() ? strings[index] : 0;
|
||||
}
|
||||
|
||||
void ActionData::_onClear()
|
||||
{
|
||||
if (data != nullptr)
|
||||
{
|
||||
void ActionData::_onClear() {
|
||||
if (data != nullptr) {
|
||||
data->returnToPool();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user