Skip to content

Commit 05f8774

Browse files
Merge pull request #17 from introlab/fix-warnings
Fix GCC warnings on Ubuntu 20.04
2 parents 51d5d72 + 903b441 commit 05f8774

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

MusicBeatDetector/include/MusicBeatDetector/Utils/Data/ShiftRegister.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace introlab
2525
void shift(const T& value);
2626
const T& operator[](int64_t i) const;
2727

28-
const std::size_t size() const;
28+
std::size_t size() const;
2929
};
3030

3131
template<class T>
@@ -91,7 +91,7 @@ namespace introlab
9191
}
9292

9393
template<class T>
94-
inline const std::size_t ShiftRegister<T>::size() const
94+
inline std::size_t ShiftRegister<T>::size() const
9595
{
9696
return m_data.size();
9797
}

MusicBeatDetector/src/Obtain/BpmEstimator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ BpmEstimator::BpmEstimator(
1616
float maxBpm,
1717
size_t candidateCount)
1818
: m_ossSamplingFrequency(ossSamplingFrequency),
19-
m_crossCorrelationCalculator(ossWindowSize),
20-
m_candidateCount(candidateCount)
19+
m_candidateCount(candidateCount),
20+
m_crossCorrelationCalculator(ossWindowSize)
2121
{
2222
if (minBpm <= 0 || maxBpm <= 0)
2323
{

MusicBeatDetector/src/Obtain/OssCalculator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ float OssCalculator::calculateFlux()
7474
float OssCalculator::calculateOss()
7575
{
7676
float oss = 0;
77-
for (int64_t i = 0; i < m_fluxShiftRegister.size(); i++)
77+
for (size_t i = 0; i < m_fluxShiftRegister.size(); i++)
7878
{
7979
oss += m_fluxShiftRegister[i] * m_fluxHamming(i);
8080
}

0 commit comments

Comments
 (0)