summaryrefslogtreecommitdiffstats
path: root/src/vinylcontrol
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-24 20:26:09 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-24 20:26:09 +0200
commitacfb66df978b3f63bbd2e5a476cdcd3148de73fe (patch)
tree3bb49f5609bac97bc26fa8a3c326561a6d2ee3de /src/vinylcontrol
parent55c4217fe321342aaf84d13c956b9ac4b2d19367 (diff)
Make various int cast explicit using static_cast<int>()
Diffstat (limited to 'src/vinylcontrol')
-rw-r--r--src/vinylcontrol/vinylcontrolxwax.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vinylcontrol/vinylcontrolxwax.cpp b/src/vinylcontrol/vinylcontrolxwax.cpp
index 14c908dd9e..78f078eb2b 100644
--- a/src/vinylcontrol/vinylcontrolxwax.cpp
+++ b/src/vinylcontrol/vinylcontrolxwax.cpp
@@ -54,7 +54,7 @@ VinylControlXwax::VinylControlXwax(UserSettingsPointer pConfig, QString group)
m_iPosition(-1),
m_bAtRecordEnd(false),
m_bForceResync(false),
- m_iVCMode(mode->get()),
+ m_iVCMode(static_cast<int>(mode->get())),
m_iOldVCMode(MIXXX_VCMODE_ABSOLUTE),
m_dOldFilePos(0.0),
m_dOldDuration(0.0),
@@ -305,7 +305,7 @@ void VinylControlXwax::analyzeSamples(CSAMPLE* pSamples, size_t nFrames) {
// Get the playback position in the file in seconds.
double filePosition = playPos->get() * m_dOldDuration;
- int reportedMode = mode->get();
+ int reportedMode = static_cast<int>(mode->get());
bool reportedPlayButton = playButton->get();
if (m_iVCMode != reportedMode) {
@@ -791,7 +791,7 @@ bool VinylControlXwax::checkEnabled(bool was, bool is) {
if (!was) {
m_dOldFilePos = 0.0;
}
- m_iVCMode = mode->get();
+ m_iVCMode = static_cast<int>(mode->get());
m_bAtRecordEnd = false;
}