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:
alex 1995-02-02 18:04:50 +00:00
parent f18be2f45d
commit 77aedf89a6
2 changed files with 7 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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; }
};