Bug fix -> String with one char + Directory and File on linux

Former-commit-id: 7f9b6c44197c3cc67145eb0a2d421a2e1de45a84
This commit is contained in:
Gawaboumga
2016-04-04 10:36:13 +02:00
parent 265e1c0fbd
commit 91f2bee487
8 changed files with 60 additions and 459 deletions

View File

@@ -3204,14 +3204,12 @@ namespace Nz
EnsureOwnership(true);
m_sharedString->size = 1;
m_sharedString->string[0] = character;
m_sharedString->string[1] = '\0';
}
else
{
auto newString = std::make_shared<SharedString>(1);
newString->string[0] = character;
}
m_sharedString = std::make_shared<SharedString>(1);
m_sharedString->string[0] = character;
}
else
ReleaseString();