1010
1111struct namedprop_bimap {
1212 public:
13- uint16_t emplace (uint16_t , PROPERTY_XNAME &&);
13+ gromox:: propid_t emplace (gromox:: propid_t , PROPERTY_XNAME &&);
1414
15- gi_name_map fwd; /* note this is uint32_t -> */
16- std::unordered_map<std::string, uint16_t > rev;
17- uint16_t nextid = 0x8000 ;
15+ gi_name_map fwd;
16+ std::unordered_map<std::string, gromox:: propid_t > rev;
17+ gromox:: propid_t nextid = 0x8000 ;
1818};
1919
2020static struct namedprop_bimap static_namedprop_map;
2121
22- uint16_t namedprop_bimap::emplace (uint16_t desired_propid, PROPERTY_XNAME &&name)
22+ gromox::propid_t namedprop_bimap::emplace (gromox::propid_t desired_propid,
23+ PROPERTY_XNAME &&name)
2324{
2425 if (desired_propid == 0 )
2526 desired_propid = nextid;
@@ -39,7 +40,7 @@ uint16_t namedprop_bimap::emplace(uint16_t desired_propid, PROPERTY_XNAME &&name
3940 if (!newly_added)
4041 return iter->second ;
4142 fwd.emplace (PROP_TAG (PT_UNSPECIFIED, desired_propid), std::move (name));
42- nextid = std::max (nextid, static_cast <uint16_t >(desired_propid + 1 ));
43+ nextid = std::max (nextid, static_cast <gromox:: propid_t >(desired_propid + 1 ));
4344 return desired_propid;
4445}
4546
@@ -55,8 +56,8 @@ static BOOL ee_get_propids(const PROPNAME_ARRAY *names, PROPID_ARRAY *ids) try
5556 return false ;
5657}
5758
58- static const PROPERTY_XNAME *ee_get_propname (uint16_t ) __attribute__((unused));
59- static const PROPERTY_XNAME *ee_get_propname (uint16_t propid)
59+ static const PROPERTY_XNAME *ee_get_propname (gromox:: propid_t ) __attribute__((unused));
60+ static const PROPERTY_XNAME *ee_get_propname (gromox:: propid_t propid)
6061{
6162 auto i = static_namedprop_map.fwd .find (propid);
6263 return i != static_namedprop_map.fwd .end () ? &i->second : nullptr ;
0 commit comments