Patch level : 314
Files correlati : ba2 Ricompilazione Demo : [ ] Commento : Migliorata composizione nomi dei files, eliminando i doppi // git-svn-id: svn://10.65.10.50/trunk@18918 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
930662adfa
commit
76ef3f8faa
@ -1213,9 +1213,13 @@ const char* TFilename::path() const
|
||||
|
||||
TFilename& TFilename::add(const char* n)
|
||||
{
|
||||
if (not_empty() && is_not_slash(_str[len()-1]) && is_not_slash(*n))
|
||||
*this << SLASH;
|
||||
*this << n;
|
||||
const int flag = (not_empty() && is_slash(_str[len()-1]) ? 1 : 0) + (n && is_slash(*n) ? 2 : 0);
|
||||
switch (flag)
|
||||
{
|
||||
case 0: *this << SLASH << n; break;
|
||||
case 3: *this << (n+1); break;
|
||||
default: *this << n; break;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user