Skip to content

Commit 85a6139

Browse files
committed
Fixed invalid size method usage.
1 parent 97ef42e commit 85a6139

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

includes/RhythmGameUtilities/Utilities.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ GenerateAdjacentKeyPairs(std::map<int, int> keyValuePairs)
7676

7777
std::vector<int> sortedKeys(keys.begin(), keys.end());
7878

79-
for (auto i = 0; i < size(sortedKeys) - 1; i += 1)
79+
for (auto i = 0; i < sortedKeys.size() - 1; i += 1)
8080
{
8181
adjacentKeyPairs.push_back(
8282
std::make_tuple(sortedKeys[i], sortedKeys[i + 1]));

tests/RhythmGameUtilities/UtilitiesInternal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void testConvertSecondsToTicksInternal()
2424

2525
assert(1408 == ConvertSecondsToTicksInternal(5, 192, &bpmChangesKeys[0],
2626
&bpmChangesValues[0],
27-
size(bpmChanges)));
27+
bpmChanges.size()));
2828

2929
std::cout << ".";
3030
}
@@ -48,7 +48,7 @@ void testCalculateBeatBarsInternal()
4848

4949
auto beatBars =
5050
CalculateBeatBarsInternal(&bpmChangesKeys[0], &bpmChangesValues[0],
51-
size(bpmChanges), 192, 4, true, outSize);
51+
bpmChanges.size(), 192, 4, true, outSize);
5252

5353
assert(*outSize == 446);
5454

0 commit comments

Comments
 (0)