mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Updated a module's library dependencies.
This commit is contained in:
parent
6f5bb01513
commit
b558d441cb
2 changed files with 7 additions and 5 deletions
|
|
@ -36,7 +36,7 @@ class ComSmartPtr
|
|||
public:
|
||||
ComSmartPtr() throw() : p (0) {}
|
||||
ComSmartPtr (ComClass* const p_) : p (p_) { if (p_ != 0) p_->AddRef(); }
|
||||
ComSmartPtr (const ComSmartPtr<ComClass>& p_) : p (p_.p) { if (p != 0) p->AddRef(); }
|
||||
ComSmartPtr (const ComSmartPtr<ComClass>& p_) : p (p_.p) { if (p != 0) p ->AddRef(); }
|
||||
~ComSmartPtr() { release(); }
|
||||
|
||||
operator ComClass*() const throw() { return p; }
|
||||
|
|
@ -116,6 +116,8 @@ public:
|
|||
{
|
||||
#if ! JUCE_MINGW
|
||||
if (refId == __uuidof (ComClass)) { AddRef(); *result = dynamic_cast <ComClass*> (this); return S_OK; }
|
||||
#else
|
||||
jassertfalse; // need to find a mingw equivalent of __uuidof to make this possible
|
||||
#endif
|
||||
|
||||
if (refId == IID_IUnknown) { AddRef(); *result = dynamic_cast <IUnknown*> (this); return S_OK; }
|
||||
|
|
@ -124,11 +126,11 @@ public:
|
|||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
ULONG __stdcall AddRef() { return (ULONG) ++refCount; }
|
||||
ULONG __stdcall Release() { const int r = --refCount; if (r == 0) delete this; return (ULONG) r; }
|
||||
ULONG __stdcall AddRef() { return ++refCount; }
|
||||
ULONG __stdcall Release() { const ULONG r = --refCount; if (r == 0) delete this; return r; }
|
||||
|
||||
protected:
|
||||
int refCount;
|
||||
ULONG refCount;
|
||||
};
|
||||
|
||||
#endif // __JUCE_WIN32_COMSMARTPTR_JUCEHEADER__
|
||||
|
|
|
|||
|
|
@ -25,5 +25,5 @@
|
|||
"native/*" ],
|
||||
|
||||
"OSXFrameworks": "Cocoa",
|
||||
"iOSFrameworks": "CoreGraphics CoreText"
|
||||
"iOSFrameworks": "CoreGraphics CoreText QuartzCore"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue