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
b1500002
Kaydet (Commit)
b1500002
authored
Kas 18, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SfxMedium::LockOrigFileOnDemand return value is never used
Change-Id: I2f64cc8fbe78354f9ded7a9a6bf03d9c597b3897
üst
78e2af8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
docfile.hxx
include/sfx2/docfile.hxx
+1
-1
docfile.cxx
sfx2/source/doc/docfile.cxx
+5
-12
No files found.
include/sfx2/docfile.hxx
Dosyayı görüntüle @
b1500002
...
...
@@ -161,7 +161,7 @@ public:
sal_Bool
IsStorage
();
sal_Int8
ShowLockedDocumentDialog
(
const
css
::
uno
::
Sequence
<
OUString
>&
aData
,
sal_Bool
bIsLoading
,
sal_Bool
bOwnLock
);
bool
LockOrigFileOnDemand
(
sal_Bool
bLoading
,
sal_Bool
bNoUI
);
void
LockOrigFileOnDemand
(
sal_Bool
bLoading
,
sal_Bool
bNoUI
);
void
UnlockFile
(
sal_Bool
bReleaseLockStream
);
css
::
uno
::
Reference
<
css
::
embed
::
XStorage
>
GetStorage
(
sal_Bool
bCreateTempIfNo
=
sal_True
);
...
...
sfx2/source/doc/docfile.cxx
Dosyayı görüntüle @
b1500002
...
...
@@ -979,23 +979,17 @@ namespace
#endif // HAVE_FEATURE_MULTIUSER_ENVIRONMENT
// returns true if the document can be opened for editing ( even if it should be a copy )
// otherwise the document should be opened readonly
// sets SID_DOC_READONLY if the document cannot be opened for editing
// if user cancel the loading the ERROR_ABORT is set
bool
SfxMedium
::
LockOrigFileOnDemand
(
sal_Bool
bLoading
,
sal_Bool
bNoUI
)
void
SfxMedium
::
LockOrigFileOnDemand
(
sal_Bool
bLoading
,
sal_Bool
bNoUI
)
{
#if !HAVE_FEATURE_MULTIUSER_ENVIRONMENT
(
void
)
bLoading
;
(
void
)
bNoUI
;
return
true
;
#else
if
(
!
IsLockingUsed
())
return
true
;
if
(
GetURLObject
().
HasError
()
)
return
false
;
if
(
!
IsLockingUsed
()
||
GetURLObject
().
HasError
())
return
;
bool
bResult
=
false
;
try
{
if
(
pImp
->
m_bLocked
&&
bLoading
&&
::
utl
::
LocalFileHelper
::
IsLocalFile
(
GetURLObject
().
GetMainURL
(
INetURLObject
::
NO_DECODE
)
)
)
...
...
@@ -1005,7 +999,7 @@ bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI )
GetLockingStream_Impl
();
}
bResult
=
pImp
->
m_bLocked
;
b
ool
b
Result
=
pImp
->
m_bLocked
;
if
(
!
bResult
)
{
...
...
@@ -1224,7 +1218,6 @@ bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI )
{
SAL_WARN
(
"sfx.doc"
,
"Locking exception: high probability, that the content has not been created"
);
}
return
bResult
;
#endif
}
...
...
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