diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-13 10:20:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-13 11:02:46 +0000 |
commit | 3b4786b6b7eec79b29f604cffc1cd708244e90b3 (patch) | |
tree | a124607c3ed8d55a891e46ebca5d51f512804826 /tools/source/fsys | |
parent | 761f502083652f0e45de9c38f56cf4867a8197e9 (diff) |
callcatcher: regenerate list
Diffstat (limited to 'tools/source/fsys')
-rw-r--r-- | tools/source/fsys/dirent.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx index 38138f80c08a..20251dfeee40 100644 --- a/tools/source/fsys/dirent.cxx +++ b/tools/source/fsys/dirent.cxx @@ -1569,34 +1569,6 @@ String DirEntry::GetSearchDelimiter( FSysPathStyle eFormatter ) *************************************************************************/ namespace { struct TempNameBase_Impl : public rtl::Static< DirEntry, TempNameBase_Impl > {}; } -const DirEntry& DirEntry::SetTempNameBase( const String &rBase ) -{ - DirEntry aTempDir = DirEntry().TempName().GetPath(); - aTempDir += DirEntry( rBase ); -#ifdef UNX - rtl::OString aName(rtl::OUStringToOString(aTempDir.GetFull(), osl_getThreadTextEncoding())); - if ( access( aName.getStr(), W_OK | X_OK | R_OK ) ) - { - // Create the directory and only on success give all rights to - // everyone. Use mkdir instead of DirEntry::MakeDir because - // this returns sal_True even if directory already exists. - - if ( !mkdir( aName.getStr(), S_IRWXU | S_IRWXG | S_IRWXO ) ) - chmod( aName.getStr(), S_IRWXU | S_IRWXG | S_IRWXO ); - - // This will not create a directory but perhaps FileStat called - // there modifies the DirEntry - - aTempDir.MakeDir(); - } -#else - aTempDir.MakeDir(); -#endif - DirEntry &rEntry = TempNameBase_Impl::get(); - rEntry = aTempDir.TempName( FSYS_KIND_DIR ); - return rEntry; -} - DirEntry DirEntry::TempName( DirEntryKind eKind ) const { // ggf. Base-Temp-Dir verwenden (macht Remote keinen Sinn => vorher) |