Răsfoiți Sursa

Remove CHARTYPE_16BITS unused checks

fix #5263
J08nY 9 ani în urmă
părinte
comite
a95a1f47a4
3 a modificat fișierele cu 5 adăugiri și 8 ștergeri
  1. 2 4
      core/ustring.h
  2. 2 2
      core/variant.cpp
  3. 1 2
      core/variant.h

+ 2 - 4
core/ustring.h

@@ -46,11 +46,9 @@ public:
 	operator const char*() {return get_data();};
 };
 
-#ifndef CHARTYPE_16BITS
+
 typedef wchar_t CharType;
-#else
-typedef wchar_t uint16_t;
-#endif
+
 
 struct StrRange {
 

+ 2 - 2
core/variant.cpp

@@ -1445,12 +1445,12 @@ Variant::operator unsigned char() const {
 
 	return 0;
 }
-#ifndef CHARTYPE_16BITS
+
 Variant::operator CharType() const {
 
 	return operator unsigned int();
 }
-#endif
+
 
 Variant::operator float() const {
 

+ 1 - 2
core/variant.h

@@ -202,9 +202,8 @@ public:
 	operator unsigned long() const;
 #endif
 
-#ifndef	CHARTYPE_16BITS
+
 	operator CharType() const;
-#endif
 	operator float() const;
 	operator double() const;
 	operator String() const;