diff --git a/inc/hgl/CodePage.h b/inc/hgl/CodePage.h index 7e79e70..1e21bcc 100644 --- a/inc/hgl/CodePage.h +++ b/inc/hgl/CodePage.h @@ -145,13 +145,13 @@ namespace hgl hgl::strcpy(charset,CHAR_SET_NAME_MAX_LENGTH,"us-ascii"); } - CharSet(uint16 ccp,const char *cs) + CharSet(const uint16 ccp,const char *cs) { codepage=ccp; hgl::strcpy(charset,CHAR_SET_NAME_MAX_LENGTH,cs); } - CharSet(uint16); + CharSet(const uint16); CharSet(const u8char *); CharSet(const CodePageAndCharSet &cs) @@ -164,7 +164,7 @@ namespace hgl CompOperator(const CharSet &,_Comp) };//struct CharacterSet - inline CharSet::CharSet(uint16 ccp) + inline CharSet::CharSet(const uint16 ccp) { codepage=ccp; hgl::strcpy(charset,CHAR_SET_NAME_MAX_LENGTH,FindCharSet(ccp)); diff --git a/inc/hgl/Endian.h b/inc/hgl/Endian.h index c0e42f8..195d7d0 100644 --- a/inc/hgl/Endian.h +++ b/inc/hgl/Endian.h @@ -12,7 +12,7 @@ namespace hgl * 全部Windows所支持代码页请参见 http://msdn.microsoft.com/en-us/library/dd317756 * https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers */ - enum class CharCodePage ///代码页枚举 + enum class CharCodePage:uint16 ///代码页枚举 { NONE=0, ///<起始定义,无意义