mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Rename char16_t to char16 to fix VS2010 compiler errors due to char16_t becoming a built-in type (issue #243).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@289 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -188,7 +188,7 @@ struct CefStringTraitsUTF8 {
|
||||
// Traits implementation for utf16 character strings.
|
||||
///
|
||||
struct CefStringTraitsUTF16 {
|
||||
typedef char16_t char_type;
|
||||
typedef char16 char_type;
|
||||
typedef cef_string_utf16_t struct_type;
|
||||
typedef cef_string_userfree_utf16_t userfree_struct_type;
|
||||
|
||||
@ -339,7 +339,7 @@ public:
|
||||
///
|
||||
CefStringBase(const string16& src) : string_(NULL), owner_(false)
|
||||
{ FromString16(src); }
|
||||
CefStringBase(const char16_t* src) : string_(NULL), owner_(false)
|
||||
CefStringBase(const char16* src) : string_(NULL), owner_(false)
|
||||
{ FromString16(string16(src)); }
|
||||
#endif // BUILDING_CEF_SHARED && WCHAR_T_IS_UTF32
|
||||
|
||||
@ -667,7 +667,7 @@ public:
|
||||
operator string16() const { return ToString16(); }
|
||||
CefStringBase& operator=(const string16& str)
|
||||
{ FromString16(str); return *this; }
|
||||
CefStringBase& operator=(const char16_t* str)
|
||||
CefStringBase& operator=(const char16* str)
|
||||
{ FromString16(string16(str)); return *this; }
|
||||
#endif // BUILDING_CEF_SHARED && WCHAR_T_IS_UTF32
|
||||
|
||||
|
Reference in New Issue
Block a user