mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[cpp] Pass ids by reference, closes #2177
This commit is contained in:
parent
8f01d089e4
commit
3f5e00109c
@ -110,7 +110,7 @@ namespace spine {
|
||||
|
||||
Vector<Timeline *> &getTimelines();
|
||||
|
||||
bool hasTimeline(Vector<PropertyId> ids);
|
||||
bool hasTimeline(Vector<PropertyId> &ids);
|
||||
|
||||
float getDuration();
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ Animation::Animation(const String &name, Vector<Timeline *> &timelines, float du
|
||||
}
|
||||
}
|
||||
|
||||
bool Animation::hasTimeline(Vector<PropertyId> ids) {
|
||||
bool Animation::hasTimeline(Vector<PropertyId> &ids) {
|
||||
for (size_t i = 0; i < ids.size(); i++) {
|
||||
if (_timelineIds.containsKey(ids[i])) return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user