Skip to content

Commit 28fb83d

Browse files
committed
[cpp] Fix passing argument by reference
1 parent eef0528 commit 28fb83d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spine-cpp/spine-cpp/include/spine/SkeletonBounds.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace spine {
6565
bool aabbintersectsSegment(float x1, float y1, float x2, float y2);
6666

6767
/// Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.
68-
bool aabbIntersectsSkeleton(SkeletonBounds bounds);
68+
bool aabbIntersectsSkeleton(SkeletonBounds &bounds);
6969

7070
/// Returns true if the polygon contains the point.
7171
bool containsPoint(Polygon *polygon, float x, float y);

spine-cpp/spine-cpp/src/spine/SkeletonBounds.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bool SkeletonBounds::aabbintersectsSegment(float x1, float y1, float x2, float y
118118
return false;
119119
}
120120

121-
bool SkeletonBounds::aabbIntersectsSkeleton(SkeletonBounds bounds) {
121+
bool SkeletonBounds::aabbIntersectsSkeleton(SkeletonBounds &bounds) {
122122
return _minX < bounds._maxX && _maxX > bounds._minX && _minY < bounds._maxY && _maxY > bounds._minY;
123123
}
124124

0 commit comments

Comments
 (0)