Skip to content

Commit

Permalink
Merge pull request #12662 from fwcd/rename-macosversion
Browse files Browse the repository at this point in the history
MacOsVersion: Rename to AppleOsVersion
  • Loading branch information
daschuer authored Jan 28, 2024
2 parents b131de5 + 35aba64 commit cca0663
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1551,8 +1551,8 @@ if(APPLE)
target_compile_definitions(mixxx-lib PUBLIC GL_SILENCE_DEPRECATION)

target_sources(mixxx-lib PRIVATE
src/util/appleosversion.mm
src/util/darkappearance.mm
src/util/macosversion.mm
)

option(MACOS_ITUNES_LIBRARY "Native macOS iTunes/Music.app library integration" ON)
Expand Down
4 changes: 2 additions & 2 deletions src/sources/soundsourcecoreaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "engine/engine.h"
#include "sources/mp3decoding.h"
#include "util/appleosversion.h"
#include "util/logger.h"
#include "util/macosversion.h"
#include "util/math.h"

namespace mixxx {
Expand Down Expand Up @@ -50,7 +50,7 @@ SoundSourceProviderPriority SoundSourceProviderCoreAudio::getPriorityHint(
}

QString SoundSourceProviderCoreAudio::getVersionString() const {
return getMacOsVersion();
return getAppleOsVersion();
}

SoundSourceCoreAudio::SoundSourceCoreAudio(QUrl url)
Expand Down
2 changes: 1 addition & 1 deletion src/util/macosversion.h → src/util/appleosversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

#include <QString>

QString getMacOsVersion();
QString getAppleOsVersion();
4 changes: 2 additions & 2 deletions src/util/macosversion.mm → src/util/appleosversion.mm
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "util/macosversion.h"
#include "util/appleosversion.h"

#import <Foundation/Foundation.h>

QString getMacOsVersion() {
QString getAppleOsVersion() {
NSProcessInfo* processInfo = [NSProcessInfo processInfo];
NSString* osVer = processInfo.operatingSystemVersionString;
return QString::fromCFString((__bridge CFStringRef)osVer);
Expand Down

0 comments on commit cca0663

Please sign in to comment.