Author: gedmurphy
Date: Wed Sep 30 19:55:52 2015
New Revision: 69419
URL:
http://svn.reactos.org/svn/reactos?rev=69419&view=rev
Log:
[DEVMGR]
Add typedef for CStringAtlW. Fixes msvc build
Modified:
trunk/reactos/lib/atl/atlstr.h
Modified: trunk/reactos/lib/atl/atlstr.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlstr.h?rev=69419…
==============================================================================
--- trunk/reactos/lib/atl/atlstr.h [iso-8859-1] (original)
+++ trunk/reactos/lib/atl/atlstr.h [iso-8859-1] Wed Sep 30 19:55:52 2015
@@ -97,45 +97,26 @@
}
};
-//
-//template class <typename _BaseType = char, class StringIterator =
ChTraitsOS<_BaseType>>
-//class StrTraitATL :
-// public StringIterator
-//{
-//public:
-// static HINSTANCE FindStringResourceInstance(_In_ UINT nID) throw()
-// {
-// return AtlFindStringResourceInstance(nID);
-// }
-//
-// static IAtlStringMgr* GetDefaultManager() throw()
-// {
-// return CAtlStringMgr::GetInstance();
-// }
-//};
-//
-//
-//template< typename _CharType = wchar_t>
-//class ChTraitsOS :
-// public ChTraitsBase<_CharType>
-//{
-//protected:
-//
-//public:
-//
-//};
-//
-//#ifndef _ATL_CSTRING_NO_CRT
-// typedef CStringT<wchar_t, StrTraitATL<wchar_t,
ChTraitsCRT<wchar_t>>> CAtlStringW;
-//#else
-// typedef CStringT<wchar_t, StrTraitATL<wchar_t>> CAtlStringW;
-//#endif
-//
-//#ifndef _AFX
-// typedef CAtlStringW CStringW;
-//#endif
+
+template <typename _BaseType = char, class StringIterator =
ChTraitsOS<_BaseType>>
+class StrTraitATL :
+ public StringIterator
+{
+public:
+ static HINSTANCE FindStringResourceInstance(_In_ UINT nID) throw()
+ {
+ return AtlFindStringResourceInstance(nID);
+ }
+
+ static IAtlStringMgr* GetDefaultManager() throw()
+ {
+ return CAtlStringMgr::GetInstance();
+ }
+};
-} //namespace ATL
+typedef CStringT<wchar_t, StrTraitATL<wchar_t, ChTraitsCRT<wchar_t>>>
CAtlStringW;
+
+}
#endif