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
112645f7
Kaydet (Commit)
112645f7
authored
Haz 26, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clang: Use-after-free
Change-Id: I5dd857dbf39c8cd62df8b8cd0323b873a79976ae
üst
080bf84b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
sfxbasemodel.hxx
include/sfx2/sfxbasemodel.hxx
+1
-1
sfxbasemodel.cxx
sfx2/source/doc/sfxbasemodel.cxx
+12
-4
No files found.
include/sfx2/sfxbasemodel.hxx
Dosyayı görüntüle @
112645f7
...
...
@@ -879,7 +879,7 @@ private:
SAL_DLLPRIVATE
void
loadCmisProperties
();
SAL_DLLPRIVATE
void
handleLoadError
(
sal_uInt32
nError
,
SfxMedium
*
pMedium
);
SAL_DLLPRIVATE
SfxMedium
*
handleLoadError
(
sal_uInt32
nError
,
SfxMedium
*
pMedium
);
// private variables and methods
...
...
sfx2/source/doc/sfxbasemodel.cxx
Dosyayı görüntüle @
112645f7
...
...
@@ -1793,6 +1793,9 @@ OUString getFilterProvider( SfxMedium& rMedium )
void
setUpdatePickList
(
SfxMedium
*
pMedium
)
{
if
(
!
pMedium
)
return
;
bool
bHidden
=
false
;
SFX_ITEMSET_ARG
(
pMedium
->
GetItemSet
(),
pHidItem
,
SfxBoolItem
,
SID_HIDDEN
,
false
);
if
(
pHidItem
)
...
...
@@ -1832,7 +1835,7 @@ void SAL_CALL SfxBaseModel::load( const Sequence< beans::PropertyValue >& seqA
if
(
!
m_pData
->
m_pObjectShell
->
DoLoadExternal
(
pMedium
))
nError
=
ERRCODE_IO_GENERAL
;
handleLoadError
(
nError
,
pMedium
);
pMedium
=
handleLoadError
(
nError
,
pMedium
);
setUpdatePickList
(
pMedium
);
return
;
}
...
...
@@ -1920,7 +1923,7 @@ void SAL_CALL SfxBaseModel::load( const Sequence< beans::PropertyValue >& seqA
m_pData
->
m_pObjectShell
->
ResetError
();
handleLoadError
(
nError
,
pMedium
);
pMedium
=
handleLoadError
(
nError
,
pMedium
);
loadCmisProperties
();
setUpdatePickList
(
pMedium
);
...
...
@@ -2665,11 +2668,13 @@ void SfxBaseModel::loadCmisProperties( )
}
}
void
SfxBaseModel
::
handleLoadError
(
sal_uInt32
nError
,
SfxMedium
*
pMedium
)
SfxMedium
*
SfxBaseModel
::
handleLoadError
(
sal_uInt32
nError
,
SfxMedium
*
pMedium
)
{
if
(
!
nError
)
{
// No error condition.
return
;
return
pMedium
;
}
bool
bSilent
=
false
;
SFX_ITEMSET_ARG
(
pMedium
->
GetItemSet
(),
pSilentItem
,
SfxBoolItem
,
SID_SILENT
,
false
);
...
...
@@ -2692,6 +2697,7 @@ void SfxBaseModel::handleLoadError( sal_uInt32 nError, SfxMedium* pMedium )
// for whatever reason document now has another medium
OSL_FAIL
(
"Document has rejected the medium?!"
);
delete
pMedium
;
pMedium
=
NULL
;
}
if
(
!
bWarning
)
// #i30711# don't abort loading if it's only a warning
...
...
@@ -2701,6 +2707,8 @@ void SfxBaseModel::handleLoadError( sal_uInt32 nError, SfxMedium* pMedium )
"SfxBaseModel::handleLoadError: 0x"
+
OUString
::
number
(
nError
,
16
),
Reference
<
XInterface
>
(),
nError
);
}
return
pMedium
;
}
...
...
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