Changeset 239152 in webkit
- Timestamp:
- Dec 12, 2018 10:51:06 PM (5 years ago)
- Location:
- trunk/Source/WebKitLegacy/win
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKitLegacy/win/COMEnumVariant.h
r239151 r239152 70 70 // COMEnumVariant ------------------------------------------------------------------ 71 71 template<typename ContainerType> 72 COMEnumVariant< typenameContainerType>* COMEnumVariant<ContainerType>::adopt(ContainerType& container)72 COMEnumVariant<ContainerType>* COMEnumVariant<ContainerType>::adopt(ContainerType& container) 73 73 { 74 74 COMEnumVariant* instance = new COMEnumVariant; … … 80 80 81 81 template<typename ContainerType> 82 COMEnumVariant< typenameContainerType>* COMEnumVariant<ContainerType>::createInstance(const ContainerType& container)82 COMEnumVariant<ContainerType>* COMEnumVariant<ContainerType>::createInstance(const ContainerType& container) 83 83 { 84 84 COMEnumVariant* instance = new COMEnumVariant(container); … … 136 136 return S_FALSE; 137 137 138 COMVariantSetter< ContainerType::ValueType>::setVariant(&rgVar[i], *m_currentPos);138 COMVariantSetter<typename ContainerType::ValueType>::setVariant(&rgVar[i], *m_currentPos); 139 139 ++m_currentPos; 140 140 if (pCeltFetched) -
trunk/Source/WebKitLegacy/win/COMPropertyBag.h
r239151 r239152 78 78 // COMPropertyBag ------------------------------------------------------------------ 79 79 template<typename ValueType, typename KeyType, typename HashType> 80 COMPropertyBag<ValueType, KeyType, HashType>* COMPropertyBag< typename ValueType, typenameKeyType, HashType>::createInstance(const HashMapType& hashMap)80 COMPropertyBag<ValueType, KeyType, HashType>* COMPropertyBag<ValueType, KeyType, HashType>::createInstance(const HashMapType& hashMap) 81 81 { 82 82 COMPropertyBag* instance = new COMPropertyBag(hashMap); … … 86 86 87 87 template<typename ValueType, typename KeyType, typename HashType> 88 COMPropertyBag<ValueType, KeyType, HashType>* COMPropertyBag< typename ValueType, typenameKeyType, HashType>::adopt(HashMapType& hashMap)88 COMPropertyBag<ValueType, KeyType, HashType>* COMPropertyBag<ValueType, KeyType, HashType>::adopt(HashMapType& hashMap) 89 89 { 90 90 COMPropertyBag* instance = new COMPropertyBag; … … 138 138 return E_POINTER; 139 139 140 HashMapType::const_iteratorit = m_hashMap.find(String(pszPropName));141 HashMapType::const_iteratorend = m_hashMap.end();140 auto it = m_hashMap.find(String(pszPropName)); 141 auto end = m_hashMap.end(); 142 142 if (it == end) 143 143 return E_INVALIDARG; … … 206 206 207 207 *pcProperties = 0; 208 typedef HashMapType::const_iterator Iterator; 209 Iterator current = m_hashMap.begin(); 210 Iterator end = m_hashMap.end(); 208 auto current = m_hashMap.begin(); 209 auto end = m_hashMap.end(); 211 210 for (ULONG i = 0; i < iProperty; ++i, ++current) 212 211 ; -
trunk/Source/WebKitLegacy/win/ChangeLog
r239151 r239152 1 2018-12-12 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [Win][Clang][WebKitLegacy] warning: expected a qualified name after 'typename' of COMEnumVariant and COMPropertyBag 4 https://bugs.webkit.org/show_bug.cgi?id=192617 5 6 Reviewed by Alex Christensen. 7 8 * COMEnumVariant.h: 9 (COMEnumVariant<ContainerType>::adopt): Removed 'typename' from non dependent names. 10 (COMEnumVariant<ContainerType>::createInstance): Ditto. 11 (COMEnumVariant<ContainerType>::Next): Prepend 'typename' for dependent names. 12 * COMPropertyBag.h: 13 (HashType>::createInstance): Removed 'typename' from non dependent names. 14 (HashType>::adopt): Ditto. 15 (HashType>::Read): Replaced dependent name 'HashMapType::const_iterator' with 'auto'. 16 (HashType>::GetPropertyInfo): Ditto. 17 1 18 2018-12-12 Fujii Hironori <Hironori.Fujii@sony.com> 2 19
Note: See TracChangeset
for help on using the changeset viewer.