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
3385b0da
Kaydet (Commit)
3385b0da
authored
May 15, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor utl::TempFile clean up
Change-Id: I20de8b2321d2656d17d25c6343d72c534d47e597
üst
22aa9fce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
TableCopyHelper.cxx
dbaccess/source/ui/misc/TableCopyHelper.cxx
+0
-1
tempfile.hxx
include/unotools/tempfile.hxx
+2
-5
docfile.cxx
sfx2/source/doc/docfile.cxx
+1
-2
No files found.
dbaccess/source/ui/misc/TableCopyHelper.cxx
Dosyayı görüntüle @
3385b0da
...
...
@@ -285,7 +285,6 @@ bool OTableCopyHelper::copyTagTable(const TransferableDataHelper& _aDroppedData
{
// now we need to copy the stream
::
utl
::
TempFile
aTmp
;
aTmp
.
EnableKillingFile
(
false
);
_rAsyncDrop
.
aUrl
=
aTmp
.
GetURL
();
SotStorageStreamRef
aNew
=
new
SotStorageStream
(
aTmp
.
GetFileName
()
);
_rAsyncDrop
.
aHtmlRtfStorage
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
...
...
include/unotools/tempfile.hxx
Dosyayı görüntüle @
3385b0da
...
...
@@ -74,7 +74,7 @@ public:
TempFile
(
const
OUString
&
rLeadingChars
,
bool
_bStartWithZero
=
true
,
const
OUString
*
pExtension
=
NULL
,
const
OUString
*
pParent
=
NULL
,
bool
bDirectory
=
false
);
/**
TempFile will be removed from disk in dtor if EnableKilling
TempFile
was called before.
TempFile will be removed from disk in dtor if EnableKilling
File(true)
was called before.
Temporary directories will be removed recursively in that case.
*/
~
TempFile
();
...
...
@@ -105,7 +105,7 @@ public:
/**
Returns a stream to the tempfiles data; the stream is owned by the tempfile object, so you have to keep this
alive as long as you want to use the stream. If the TempFile object is destroyed, it also destroys the
stream object, the underlying file is only deleted if EnableKillingFile(
sal_True
) has been called before!
stream object, the underlying file is only deleted if EnableKillingFile(
true
) has been called before!
*/
SvStream
*
GetStream
(
StreamMode
eMode
);
...
...
@@ -120,9 +120,6 @@ public:
void
EnableKillingFile
(
bool
bEnable
=
true
)
{
bKillingFileEnabled
=
bEnable
;
}
bool
IsKillingFileEnabled
()
const
{
return
bKillingFileEnabled
;
}
/**
Only create a "physical" file name for a temporary file that would be valid at that moment.
Should only be used for 3rd party code with a file name interface that wants to create the file by itself.
...
...
sfx2/source/doc/docfile.cxx
Dosyayı görüntüle @
3385b0da
...
...
@@ -2036,7 +2036,6 @@ void SfxMedium::DoInternalBackup_Impl( const ::ucbhelper::Content& aOriginalCont
return
;
// the backup was done already
::
utl
::
TempFile
aTransactTemp
(
aPrefix
,
true
,
&
aExtension
,
&
aDestDir
);
aTransactTemp
.
EnableKillingFile
(
false
);
INetURLObject
aBackObj
(
aTransactTemp
.
GetURL
()
);
OUString
aBackupName
=
aBackObj
.
getName
(
INetURLObject
::
LAST_SEGMENT
,
true
,
INetURLObject
::
DECODE_WITH_CHARSET
);
...
...
@@ -2063,7 +2062,7 @@ void SfxMedium::DoInternalBackup_Impl( const ::ucbhelper::Content& aOriginalCont
}
if
(
pImp
->
m_aBackupURL
.
isEmpty
()
)
aTransactTemp
.
EnableKillingFile
(
true
);
aTransactTemp
.
EnableKillingFile
();
}
...
...
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