diff --git a/src/Cache.cpp b/src/Cache.cpp index f4aad6b3a21018bb6cd72f679635af6b797046a1..7a19cba4dc2672747d5e8f6bd7bc28192185f9de 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -434,7 +434,7 @@ Cache::loadSecretsFromStore( if (job->error() && job->error() != QKeychain::Error::EntryNotFound) { nhlog::db()->error("Restoring secret '{}' failed ({}): {}", name.toStdString(), - job->error(), + static_cast<int>(job->error()), job->errorString().toStdString()); fatalSecretError(); diff --git a/src/encryption/DeviceVerificationFlow.cpp b/src/encryption/DeviceVerificationFlow.cpp index a240a095c00c43c2e88de905b9ec579db88fafcd..1e7ed7bcc7683ede74b127065f720095f939f6c7 100644 --- a/src/encryption/DeviceVerificationFlow.cpp +++ b/src/encryption/DeviceVerificationFlow.cpp @@ -37,7 +37,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *, , deviceIds(std::move(deviceIds_)) , model_(model) { - nhlog::crypto()->debug("CREATING NEW FLOW, {}, {}", flow_type, (void *)this); + nhlog::crypto()->debug("CREATING NEW FLOW, {}, {}", static_cast<int>(flow_type), (void *)this); if (deviceIds.size() == 1) deviceId = deviceIds.front(); diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 2f3b6eae8585c74199d86610b58baae0aa846297..a59bc4c61efa1b15c5533ffd9402cb9bfd66e18b 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -1041,14 +1041,16 @@ MediaUpload::MediaUpload(std::unique_ptr<QIODevice> source_, &QMediaPlayer::errorOccurred, this, [](QMediaPlayer::Error error, QString errorString) { - nhlog::ui()->debug( - "Media player error {} and errorStr {}", error, errorString.toStdString()); + nhlog::ui()->debug("Media player error {} and errorStr {}", + static_cast<int>(error), + errorString.toStdString()); }); connect(mediaPlayer, &QMediaPlayer::mediaStatusChanged, [mediaPlayer](QMediaPlayer::MediaStatus status) { - nhlog::ui()->debug( - "Media player status {} and error {}", status, mediaPlayer->error()); + nhlog::ui()->debug("Media player status {} and error {}", + static_cast<int>(status), + static_cast<int>(mediaPlayer->error())); }); connect(mediaPlayer, &QMediaPlayer::metaDataChanged, this, [this, mediaPlayer]() { nhlog::ui()->debug("Got metadata {}"); diff --git a/src/ui/MxcMediaProxy.cpp b/src/ui/MxcMediaProxy.cpp index 2adf25387c6075c1d22812cf500be82ebc8c5e21..5fae0654f8b609e65bd2fdece0a5086b0e19ce8f 100644 --- a/src/ui/MxcMediaProxy.cpp +++ b/src/ui/MxcMediaProxy.cpp @@ -27,11 +27,14 @@ MxcMediaProxy::MxcMediaProxy(QObject *parent) connect(this, &MxcMediaProxy::roomChanged, &MxcMediaProxy::startDownload); connect( this, &QMediaPlayer::errorOccurred, this, [](QMediaPlayer::Error error, QString errorString) { - nhlog::ui()->debug( - "Media player error {} and errorStr {}", error, errorString.toStdString()); + nhlog::ui()->debug("Media player error {} and errorStr {}", + static_cast<int>(error), + errorString.toStdString()); }); connect(this, &MxcMediaProxy::mediaStatusChanged, [this](QMediaPlayer::MediaStatus status) { - nhlog::ui()->info("Media player status {} and error {}", status, this->error()); + nhlog::ui()->info("Media player status {} and error {}", + static_cast<int>(status), + static_cast<int>(this->error())); }); connect(this, &MxcMediaProxy::metaDataChanged, [this]() { emit orientationChanged(); });