[librsvg: 14/20] PropertyBag::new_from_namespaced_attributes: rename to new_from_xml2_attributes
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 14/20] PropertyBag::new_from_namespaced_attributes: rename to new_from_xml2_attributes
- Date: Sat, 26 Oct 2019 23:36:04 +0000 (UTC)
commit 63782770e8aa44496ff3aed9b2a807e40f748eb2
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Oct 26 09:41:33 2019 -0500
PropertyBag::new_from_namespaced_attributes: rename to new_from_xml2_attributes
rsvg_internals/src/property_bag.rs | 6 +++---
rsvg_internals/src/xml2_load.rs | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rsvg_internals/src/property_bag.rs b/rsvg_internals/src/property_bag.rs
index 9261783f..3cefc0c9 100644
--- a/rsvg_internals/src/property_bag.rs
+++ b/rsvg_internals/src/property_bag.rs
@@ -31,7 +31,7 @@ impl<'a> PropertyBag<'a> {
/// The lifetime of the `PropertyBag` should be considered the same as the lifetime of the
/// `attrs` array, as the property bag does not copy the strings - it directly stores pointers
/// into that array's strings.
- pub unsafe fn new_from_namespaced_attributes(
+ pub unsafe fn new_from_xml2_attributes(
n_attributes: usize,
attrs: *const *const libc::c_char,
) -> PropertyBag<'a> {
@@ -103,7 +103,7 @@ mod tests {
#[test]
fn empty_property_bag() {
- let map = unsafe { PropertyBag::new_from_namespaced_attributes(0, ptr::null()) };
+ let map = unsafe { PropertyBag::new_from_xml2_attributes(0, ptr::null()) };
assert_eq!(map.len(), 0);
}
@@ -139,7 +139,7 @@ mod tests {
v.push(val_end); // value_end
}
- let pbag = unsafe { PropertyBag::new_from_namespaced_attributes(3, v.as_ptr()) };
+ let pbag = unsafe { PropertyBag::new_from_xml2_attributes(3, v.as_ptr()) };
let mut had_rx: bool = false;
let mut had_ry: bool = false;
diff --git a/rsvg_internals/src/xml2_load.rs b/rsvg_internals/src/xml2_load.rs
index 8d942178..7359354b 100644
--- a/rsvg_internals/src/xml2_load.rs
+++ b/rsvg_internals/src/xml2_load.rs
@@ -194,7 +194,7 @@ unsafe extern "C" fn sax_start_element_ns_cb(
let nb_attributes = nb_attributes as usize;
let pbag =
- PropertyBag::new_from_namespaced_attributes(nb_attributes, attributes as *const *const _);
+ PropertyBag::new_from_xml2_attributes(nb_attributes, attributes as *const *const _);
if let Err(e) = xml2_parser.state.start_element(qual_name, &pbag) {
let _: () = e; // guard in case we change the error type later
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]