removed "this==nullptr" codes.

This commit is contained in:
hyzboy 2024-07-26 03:12:58 +08:00
parent 0e388be77c
commit 3af7b1f73b

View File

@ -97,15 +97,11 @@ namespace hgl
String(const InstClass &si) String(const InstClass &si)
{ {
if((&si)==nullptr)return;
data=si; data=si;
} }
String(const SelfClass &bs) String(const SelfClass &bs)
{ {
if((&bs)==nullptr)return;
Set(bs); Set(bs);
} }
@ -480,9 +476,6 @@ namespace hgl
*/ */
bool Insert(const uint pos,const SelfClass &str) bool Insert(const uint pos,const SelfClass &str)
{ {
if((&str)==nullptr)
return(false);
return Insert(pos,str.c_str(),str.Length()); return Insert(pos,str.c_str(),str.Length());
} }
@ -498,9 +491,6 @@ namespace hgl
*/ */
bool Strcat(const SelfClass &bs) bool Strcat(const SelfClass &bs)
{ {
if((&bs)==nullptr)
return(false);
return Insert(Length(),bs); return Insert(Length(),bs);
} }