Skip to content

Commit

Permalink
Fix build on macOS (clang-1500.3.89.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simul Piscator authored and Simul Piscator committed May 26, 2024
1 parent e129c7d commit 449e950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/scanjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 449e950

Please sign in to comment.