use "fromString/fromInstance“ instead of "SetString/SetInstance" in String<>

This commit is contained in:
2024-12-24 22:25:31 +08:00
parent dbbd145f03
commit 18efd0d6a6
4 changed files with 30 additions and 34 deletions

View File

@@ -132,7 +132,7 @@ namespace hgl
{
if(filename.GetFirstChar()==directory_separator_char) //开头有分隔符
{
fullname.SetString(pathname.c_str(),pathname.Length()-1); //少取一个字符
fullname.fromString(pathname.c_str(),pathname.Length()-1); //少取一个字符
}
else
{