From a30567c43158c0073cc9b0e8f148dda56c77f0d1 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 5 Sep 2020 14:56:46 +0800 Subject: [PATCH] fix String::SetInstance/StrcpyInstance functions --- inc/hgl/type/String.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/hgl/type/String.h b/inc/hgl/type/String.h index e8cda26..93e1287 100644 --- a/inc/hgl/type/String.h +++ b/inc/hgl/type/String.h @@ -260,7 +260,7 @@ namespace hgl * @param str 字符串内容,在len<0的情况下,需以0为结尾 * @param len 字符串长度 */ - void SetInstance(const T *str,const uint len) + void SetInstance(T *str,const uint len) { if(!str||!*str) { @@ -277,7 +277,7 @@ namespace hgl SetString(str,len); } - void StrcpyInstance(const T *str,int len=-1) + void StrcpyInstance(T *str,int len=-1) { SetInstance(str,len); }