diff options
author | Andy Shaw <andy.shaw@nokia.com> | 2010-05-04 07:43:12 (GMT) |
---|---|---|
committer | Andy Shaw <andy.shaw@nokia.com> | 2010-05-04 07:44:26 (GMT) |
commit | c1abca564b4ff30d7d061394424f500143deb466 (patch) | |
tree | e03ed3f721449b7067578148b5ad4d326ed5c6b4 /src/gui/kernel/qsound_mac.mm | |
parent | e4c49c5344058aaa033a9928e96205c767b8e07d (diff) | |
download | Qt-c1abca564b4ff30d7d061394424f500143deb466.zip Qt-c1abca564b4ff30d7d061394424f500143deb466.tar.gz Qt-c1abca564b4ff30d7d061394424f500143deb466.tar.bz2 |
Ensure that the Mac specific Qt classes are namespaced
When configuring Qt to be in a namespace then the Mac specific Qt
classes should be namespaced as well to prevent any duplicated class
names when a non namespaced version of Qt is used in conjunction.
Reviewed-by: Richard
Diffstat (limited to 'src/gui/kernel/qsound_mac.mm')
-rw-r--r-- | src/gui/kernel/qsound_mac.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qsound_mac.mm b/src/gui/kernel/qsound_mac.mm index 71fd663..2aff44d 100644 --- a/src/gui/kernel/qsound_mac.mm +++ b/src/gui/kernel/qsound_mac.mm @@ -88,14 +88,14 @@ QT_END_NAMESPACE QT_USE_NAMESPACE -@interface QMacSoundDelegate : NSObject<NSSoundDelegate> { +@interface QT_MANGLE_NAMESPACE(QMacSoundDelegate) : NSObject<NSSoundDelegate> { QSound *qSound; // may be null. QAuServerMac* server; } -(id)initWithQSound:(QSound*)sound:(QAuServerMac*)server; @end -@implementation QMacSoundDelegate +@implementation QT_MANGLE_NAMESPACE(QMacSoundDelegate) -(id)initWithQSound:(QSound*)s:(QAuServerMac*)serv { self = [super init]; if(self) { @@ -172,7 +172,7 @@ NSSound *QAuServerMac::createNSSound(const QString &fileName, QSound *qSound) { NSString *nsFileName = const_cast<NSString *>(reinterpret_cast<const NSString *>(QCFString::toCFStringRef(fileName))); NSSound * const nsSound = [[NSSound alloc] initWithContentsOfFile: nsFileName byReference:YES]; - QMacSoundDelegate * const delegate = [[QMacSoundDelegate alloc] initWithQSound:qSound:this]; + QT_MANGLE_NAMESPACE(QMacSoundDelegate) * const delegate = [[QT_MANGLE_NAMESPACE(QMacSoundDelegate) alloc] initWithQSound:qSound:this]; [nsSound setDelegate:delegate]; [nsFileName release]; return nsSound; |