Minor tweaks.

This commit is contained in:
spx
2011-11-14 14:32:11 +00:00
parent 1869dc467a
commit e119672f1c
4 changed files with 39 additions and 31 deletions

View File

@ -696,14 +696,8 @@ std::vector<Gdiplus::REAL> CConfigParser::ReadFloats(LPCTSTR section, LPCTSTR ke
const std::wstring& string = ReadString(section, key, L"");
if (!string.empty())
{
std::wstring tmp = string;
if (tmp[tmp.length() - 1] != L';')
{
tmp += L";";
}
// Tokenize and parse the floats
std::vector<std::wstring> tokens = Tokenize(tmp, L";");
std::vector<std::wstring> tokens = Tokenize(string, L";");
std::vector<std::wstring>::const_iterator iter = tokens.begin();
for ( ; iter != tokens.end(); ++iter)
{