From 449e950d72bce596a2e9cdb03dcf4852e1b1e8aa Mon Sep 17 00:00:00 2001 From: Simul Piscator Date: Sun, 26 May 2024 07:59:26 +0200 Subject: [PATCH] Fix build on macOS (clang-1500.3.89.4) --- server/scanjob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/scanjob.cpp b/server/scanjob.cpp index 38b20f4..e79c100 100644 --- a/server/scanjob.cpp +++ b/server/scanjob.cpp @@ -337,7 +337,7 @@ ScanJob::Private::init(const ScanSettingsXml& settings, bool autoselectFormat, c const char* ScanJob::Private::kindString() const { - switch (mKind) { + switch (mKind.load()) { case single: return "single"; case adfConcat: @@ -499,7 +499,7 @@ ScanJob::Private::updateStatus(SANE_Status status) mStateReason = PWG_JOB_CANCELED_BY_USER; break; case SANE_STATUS_EOF: - switch(mKind) { + switch(mKind.load()) { case single: if (mImagesCompleted > 0) { mState = completed;