зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1680257 - Use default initialization for qcms_modular_transform. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D98467
This commit is contained in:
Родитель
96ee4b6e22
Коммит
c949054c94
|
@ -35,8 +35,7 @@ use crate::{
|
|||
};
|
||||
use ::libc::{self, free, malloc, memcpy};
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Default)]
|
||||
pub struct qcms_modular_transform {
|
||||
pub matrix: matrix,
|
||||
pub tx: f32,
|
||||
|
@ -688,8 +687,8 @@ unsafe extern "C" fn qcms_transform_module_matrix(
|
|||
i = i + 1
|
||||
}
|
||||
}
|
||||
unsafe extern "C" fn qcms_modular_transform_alloc() -> Option<Box<qcms_modular_transform>> {
|
||||
return Some(Box::new(std::mem::zeroed()))
|
||||
fn qcms_modular_transform_alloc() -> Option<Box<qcms_modular_transform>> {
|
||||
return Some(Box::new(Default::default()))
|
||||
}
|
||||
fn qcms_modular_transform_release(mut t: Option<Box<qcms_modular_transform>>) {
|
||||
// destroy a list of transforms non-recursively
|
||||
|
|
Загрузка…
Ссылка в новой задаче