删除多余的类型转换

This commit is contained in:
hyzboy 2020-03-06 23:29:16 +08:00
parent 97f38a39dc
commit 605bd3a0bb
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#include"TextureFileCreater.h"
#include"TextureFileCreater.h"
#include<hgl/filesystem/FileSystem.h>
namespace

View File

@ -1,4 +1,4 @@
#include"TextureFileCreater.h"
#include"TextureFileCreater.h"
#include"ILImage.h"
class TextureFileCreaterR:public TextureFileCreater

View File

@ -55,9 +55,7 @@ void ParseParamColorKey(const CmdParse &cmd)
if(!cmd.GetString(OS_TEXT("/ColorKey:"),ckstr))return;
char rgbstr[6];
hgl_cpy(rgbstr,ckstr.c_str(),6); //注意hgl_cpy是跨类型复制的不要替换成strcpy或memcpy
const os_char *rgbstr=ckstr.c_str();
ParseHexStr(color_key[0],rgbstr+0);
ParseHexStr(color_key[1],rgbstr+2);