Corretta genreazione nomi temporanei in UNIX
git-svn-id: svn://10.65.10.50/trunk@953 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f18be2f45d
commit
77aedf89a6
@ -667,11 +667,14 @@ const TFilename& TFilename::tempdir()
|
||||
|
||||
#ifndef FOXPRO
|
||||
|
||||
const TString& user = TApplication::user();
|
||||
TString user = TApplication::user();
|
||||
|
||||
user.lower();
|
||||
if (res == 0 && user.not_empty())
|
||||
{
|
||||
if (_tempdir.find(user) < 0)
|
||||
#if XVT_OS==XVT_OS_SCOUNIX
|
||||
_tempdir << '/' << user;
|
||||
_tempdir << '/' << user;
|
||||
#else
|
||||
_tempdir << '\\' << user;
|
||||
#endif
|
||||
@ -1037,4 +1040,4 @@ int TString_array::add(const TToken_string& s, int n)
|
||||
else
|
||||
row(n) = s;
|
||||
return n;
|
||||
}
|
||||
}
|
||||
|
@ -281,6 +281,7 @@ protected:
|
||||
public:
|
||||
TParagraph_string(const char* s, int width);
|
||||
const TString& operator =(const char* s);
|
||||
const TString& operator =(const TString & s) { return operator=((const char *) s);}
|
||||
void set_width(int width) { _width = width; }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user