Skip to content

Commit e9949b7

Browse files
axmol-bothalx99
authored andcommitted
Fixup
1 parent 8f40fde commit e9949b7

File tree

23 files changed

+60
-63
lines changed

23 files changed

+60
-63
lines changed

axmol/2d/FontAtlas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ bool FontAtlas::findNewCharacters(const std::u32string& u32Text)
319319

320320
if (_letterDefinitions.empty())
321321
{
322-
_newChars.insert(u32Text.begin(), u32Text.end());
322+
_newChars.insert(u32Text.begin(), u32Text.end());
323323
}
324324
else
325325
{

axmol/2d/ParticleSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ bool ParticleSystem::initWithDictionary(const ValueMap& dictionary, std::string_
647647
// Director::getInstance()->getTextureCache()->addUIImage()
648648
image = new Image();
649649
const auto imageDataLen = deflated.size();
650-
bool isOK = image->initWithImageData(deflated.detach_abi(), imageDataLen, true);
650+
bool isOK = image->initWithImageData(deflated.detach_abi(), imageDataLen, true);
651651
AXASSERT(isOK, "CCParticleSystem: error init image with Data");
652652
AX_BREAK_IF(!isOK);
653653

axmol/2d/TMXXMLParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ void TMXMapInfo::endElement(void* /*ctx*/, const char* name)
741741
tlx::pod_vector<uint32_t> tileGids;
742742
tlx::split(currentString, '\n', [&tileGids](const char* first, const char* last) {
743743
tlx::split(std::string_view{first, static_cast<size_t>(last - first)}, ',',
744-
[&tileGids](const char* _first, const char* _last) {
744+
[&tileGids](const char* _first, const char* _last) {
745745
unsigned int gid{0};
746746
std::from_chars(_first, _last, gid);
747747
tileGids.push_back(gid);

axmol/3d/Animation3D.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ bool Animation3D::init(const Animation3DData& data)
124124
continue;
125125

126126
tlx::resize_and_transform(iter.second.begin(), iter.second.end(), keys,
127-
[](const auto& keyIter) { return keyIter._time; });
127+
[](const auto& keyIter) { return keyIter._time; });
128128
tlx::resize_and_transform(iter.second.begin(), iter.second.end(), values,
129-
[](const auto& keyIter) { return keyIter._key; });
129+
[](const auto& keyIter) { return keyIter._key; });
130130

131131
curve->translateCurve = Curve::AnimationCurveVec3::create(&keys[0], &values[0].x, (int)keys.size());
132132
if (curve->translateCurve)
@@ -150,9 +150,9 @@ bool Animation3D::init(const Animation3DData& data)
150150
continue;
151151

152152
tlx::resize_and_transform(iter.second.begin(), iter.second.end(), keys,
153-
[](const auto& keyIter) { return keyIter._time; });
153+
[](const auto& keyIter) { return keyIter._time; });
154154
tlx::resize_and_transform(iter.second.begin(), iter.second.end(), values,
155-
[](const auto& keyIter) { return keyIter._key; });
155+
[](const auto& keyIter) { return keyIter._key; });
156156

157157
curve->rotCurve = Curve::AnimationCurveQuat::create(&keys[0], &values[0].x, (int)keys.size());
158158
if (curve->rotCurve)
@@ -176,9 +176,9 @@ bool Animation3D::init(const Animation3DData& data)
176176
continue;
177177

178178
tlx::resize_and_transform(iter.second.begin(), iter.second.end(), keys,
179-
[](const auto& keyIter) { return keyIter._time; });
179+
[](const auto& keyIter) { return keyIter._time; });
180180
tlx::resize_and_transform(iter.second.begin(), iter.second.end(), values,
181-
[](const auto& keyIter) { return keyIter._key; });
181+
[](const auto& keyIter) { return keyIter._key; });
182182

183183
curve->scaleCurve = Curve::AnimationCurveVec3::create(&keys[0], &values[0].x, (int)keys.size());
184184
if (curve->scaleCurve)

axmol/3d/Mesh.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ class AX_DLL Mesh : public Object
282282
void setLightUniforms(Pass* pass, Scene* scene, const Vec4& color, unsigned int lightmask);
283283
void bindMeshCommand();
284284
tlx::hash_map<NTextureData::Usage, Texture2D*> _textures; // textures that submesh is using
285-
MeshSkin* _skin; // skin
286-
bool _visible; // is the submesh visible
285+
MeshSkin* _skin; // skin
286+
bool _visible; // is the submesh visible
287287

288288
bool _instancing;
289289
rhi::Buffer* _instanceTransformBuffer;

axmol/3d/MeshMaterial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class MeshMaterialCache
196196

197197
protected:
198198
static MeshMaterialCache* _cacheInstance; // cache instance
199-
tlx::string_map<Texture2D*> _materials; // cached materials
199+
tlx::string_map<Texture2D*> _materials; // cached materials
200200
};
201201

202202
// end of 3d group

axmol/3d/MeshVertexIndexData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class AX_DLL MeshVertexData : public Object
145145
protected:
146146
rhi::Buffer* _vertexBuffer = nullptr; // vertex buffer
147147
ssize_t _sizePerVertex = -1;
148-
Vector<MeshIndexData*> _indices; // index data
148+
Vector<MeshIndexData*> _indices; // index data
149149
tlx::pod_vector<MeshVertexAttrib> _attribs; // vertex attributes
150150

151151
int _vertexCount = 0; // vertex count

axmol/3d/Terrain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ void Terrain::Chunk::calculateAABB()
13161316
{
13171317
tlx::pod_vector<Vec3> pos;
13181318
tlx::resize_and_transform(_originalVertices.begin(), _originalVertices.end(), pos,
1319-
[](const auto& it) { return it._position; });
1319+
[](const auto& it) { return it._position; });
13201320
_aabb.updateMinMax(&pos[0], pos.size());
13211321
}
13221322

axmol/base/Director.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ void Director::reset()
11221122
MeshMaterial::releaseBuiltInMaterial();
11231123
MeshMaterial::releaseCachedMaterial();
11241124
#endif
1125-
1125+
11261126
rhi::SamplerCache::destroyInstance();
11271127
}
11281128

axmol/base/Scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void Scheduler::priorityIn(tlx::pod_vector<SchedHandle*>& list,
351351
{
352352
auto sched = new SchedHandle(&list, callback, target, priority, paused);
353353
tlx::ordered_insert(list, sched,
354-
[](const SchedHandle* lhs, const SchedHandle* rhs) { return lhs->priority < rhs->priority; });
354+
[](const SchedHandle* lhs, const SchedHandle* rhs) { return lhs->priority < rhs->priority; });
355355

356356
_schedIndexMap.emplace(target, sched);
357357
}

0 commit comments

Comments
 (0)