Commit a91bdfc7 authored by D-AIRY's avatar D-AIRY

Fixed string::trim()

parent b6479250
......@@ -1101,7 +1101,7 @@ UINT String::remove(DWORD pos, DWORD len)
String String::trim()
{
UINT pos = ~0;
UINT pos = length();
UINT len = 0;
for(UINT i = 0, l = length(); i < l; ++i)
{
......@@ -1119,7 +1119,7 @@ String String::trim()
StringW StringW::trim()
{
UINT pos = ~0;
UINT pos = length();
UINT len = 0;
for(UINT i = 0, l = length(); i < l; ++i)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment