Convert CFMutableDictionary to use declare_TCFType

This commit is contained in:
Linus Färnstrand
2018-01-20 16:38:58 +01:00
parent 8a52a343c6
commit 3ec0d57863
+3 -9
View File
@@ -121,15 +121,9 @@ impl CFDictionary {
}
}
/// An mutable dictionary of key-value pairs.
pub struct CFMutableDictionary(CFMutableDictionaryRef);
impl Drop for CFMutableDictionary {
fn drop(&mut self) {
unsafe {
CFRelease(self.as_CFTypeRef())
}
}
declare_TCFType!{
/// An mutable dictionary of key-value pairs.
CFMutableDictionary, CFMutableDictionaryRef
}
impl_TCFType!(CFMutableDictionary, CFMutableDictionaryRef, CFDictionaryGetTypeID);