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
|
#ifndef FOXPRO
|
||||||
|
|
||||||
const TString& user = TApplication::user();
|
TString user = TApplication::user();
|
||||||
|
|
||||||
|
user.lower();
|
||||||
if (res == 0 && user.not_empty())
|
if (res == 0 && user.not_empty())
|
||||||
{
|
{
|
||||||
|
if (_tempdir.find(user) < 0)
|
||||||
#if XVT_OS==XVT_OS_SCOUNIX
|
#if XVT_OS==XVT_OS_SCOUNIX
|
||||||
_tempdir << '/' << user;
|
_tempdir << '/' << user;
|
||||||
#else
|
#else
|
||||||
_tempdir << '\\' << user;
|
_tempdir << '\\' << user;
|
||||||
#endif
|
#endif
|
||||||
|
@ -281,6 +281,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
TParagraph_string(const char* s, int width);
|
TParagraph_string(const char* s, int width);
|
||||||
const TString& operator =(const char* s);
|
const TString& operator =(const char* s);
|
||||||
|
const TString& operator =(const TString & s) { return operator=((const char *) s);}
|
||||||
void set_width(int width) { _width = width; }
|
void set_width(int width) { _width = width; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user