Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
fd0d90b5
Kaydet (Commit)
fd0d90b5
authored
Tem 13, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: remove unused TempFile::SetTempNameBaseDirectory from unotools
üst
36b7696f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
52 deletions
+0
-52
tempfile.hxx
unotools/inc/unotools/tempfile.hxx
+0
-11
tempfile.cxx
unotools/source/ucbhelper/tempfile.cxx
+0
-41
No files found.
unotools/inc/unotools/tempfile.hxx
Dosyayı görüntüle @
fd0d90b5
...
...
@@ -143,17 +143,6 @@ public:
conversion functions of osl.
*/
static
String
CreateTempName
(
const
String
*
pParent
=
NULL
);
/**
The TempNameBaseDirectory is a subfolder in the folder that is passed as a "physical" file name in the
SetTempNameBaseDirectory method.
This subfolder will be used if a TempFile or TempName is created without a parent name or a parent name
that does not belong to the local file system.
The caller of the SetTempNameBase is responsible for deleting this folder and all temporary files in it.
The return value of both methods is the complete "physical" name of the tempname base folder.
It is not a URL because alle URLs must be "UCB compatible", so there may be no suitable URL at all.
*/
static
String
SetTempNameBaseDirectory
(
const
String
&
rBaseName
);
};
}
...
...
unotools/source/ucbhelper/tempfile.cxx
Dosyayı görüntüle @
fd0d90b5
...
...
@@ -443,47 +443,6 @@ void TempFile::CloseStream()
}
}
String
TempFile
::
SetTempNameBaseDirectory
(
const
String
&
rBaseName
)
{
if
(
!
rBaseName
.
Len
()
)
return
String
();
rtl
::
OUString
aUnqPath
(
rBaseName
);
// remove trailing slash
if
(
rBaseName
.
GetChar
(
rBaseName
.
Len
()
-
1
)
==
sal_Unicode
(
'/'
)
)
aUnqPath
=
rBaseName
.
Copy
(
0
,
rBaseName
.
Len
()
-
1
);
// try to create the directory
sal_Bool
bRet
=
sal_False
;
osl
::
FileBase
::
RC
err
=
osl
::
Directory
::
create
(
aUnqPath
);
if
(
err
!=
FileBase
::
E_None
&&
err
!=
FileBase
::
E_EXIST
)
// perhaps parent(s) don't exist
bRet
=
ensuredir
(
aUnqPath
);
else
bRet
=
sal_True
;
// failure to create base directory means returning an empty string
rtl
::
OUString
aTmp
;
if
(
bRet
)
{
// append own internal directory
bRet
=
sal_True
;
::
rtl
::
OUString
&
rTempNameBase_Impl
=
TempNameBase_Impl
::
get
();
rTempNameBase_Impl
=
rBaseName
;
rTempNameBase_Impl
+=
String
(
'/'
);
TempFile
aBase
(
NULL
,
sal_True
);
if
(
aBase
.
IsValid
()
)
// use it in case of success
rTempNameBase_Impl
=
aBase
.
pImp
->
aName
;
// return system path of used directory
FileBase
::
getSystemPathFromFileURL
(
rTempNameBase_Impl
,
aTmp
);
}
return
aTmp
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment