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
4f405d8c
Kaydet (Commit)
4f405d8c
authored
Şub 10, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OSL_ENSURE -> assert when followed by unconditional dereference
Change-Id: Ic118450e11ca6a4f705670dd71015ff74072fa05
üst
233da237
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pagechg.cxx
sw/source/core/layout/pagechg.cxx
+4
-4
No files found.
sw/source/core/layout/pagechg.cxx
Dosyayı görüntüle @
4f405d8c
...
@@ -542,7 +542,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
...
@@ -542,7 +542,7 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
if
(
rOldCol
!=
rNewCol
)
if
(
rOldCol
!=
rNewCol
)
{
{
SwLayoutFrm
*
pB
=
FindBodyCont
();
SwLayoutFrm
*
pB
=
FindBodyCont
();
OSL_ENSURE
(
pB
,
"Seite ohne Body."
);
assert
(
pB
&&
"Page without Body."
);
pB
->
ChgColumns
(
rOldCol
,
rNewCol
);
pB
->
ChgColumns
(
rOldCol
,
rNewCol
);
rInvFlags
|=
0x20
;
rInvFlags
|=
0x20
;
}
}
...
@@ -948,7 +948,7 @@ void SwPageFrm::PrepareRegisterChg()
...
@@ -948,7 +948,7 @@ void SwPageFrm::PrepareRegisterChg()
*/
*/
void
SwFrm
::
CheckPageDescs
(
SwPageFrm
*
pStart
,
bool
bNotifyFields
,
SwPageFrm
**
ppPrev
)
void
SwFrm
::
CheckPageDescs
(
SwPageFrm
*
pStart
,
bool
bNotifyFields
,
SwPageFrm
**
ppPrev
)
{
{
OSL_ENSURE
(
pStart
,
"no starting page."
);
assert
(
pStart
&&
"no starting page."
);
SwViewShell
*
pSh
=
pStart
->
getRootFrm
()
->
GetCurrShell
();
SwViewShell
*
pSh
=
pStart
->
getRootFrm
()
->
GetCurrShell
();
SwViewImp
*
pImp
=
pSh
?
pSh
->
Imp
()
:
0
;
SwViewImp
*
pImp
=
pSh
?
pSh
->
Imp
()
:
0
;
...
@@ -1161,7 +1161,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, bool bFtn )
...
@@ -1161,7 +1161,7 @@ SwPageFrm *SwFrm::InsertPage( SwPageFrm *pPrevPage, bool bFtn )
if
(
!
pDesc
)
if
(
!
pDesc
)
pDesc
=
pPrevPage
->
GetPageDesc
()
->
GetFollow
();
pDesc
=
pPrevPage
->
GetPageDesc
()
->
GetFollow
();
OSL_ENSURE
(
pDesc
,
"Missing PageDesc"
);
assert
(
pDesc
&&
"Missing PageDesc"
);
if
(
!
(
bWishedOdd
?
pDesc
->
GetRightFmt
()
:
pDesc
->
GetLeftFmt
())
)
if
(
!
(
bWishedOdd
?
pDesc
->
GetRightFmt
()
:
pDesc
->
GetLeftFmt
())
)
bWishedOdd
=
!
bWishedOdd
;
bWishedOdd
=
!
bWishedOdd
;
bool
const
bWishedFirst
=
pDesc
!=
pPrevPage
->
GetPageDesc
();
bool
const
bWishedFirst
=
pDesc
!=
pPrevPage
->
GetPageDesc
();
...
@@ -1865,7 +1865,7 @@ void SwRootFrm::CheckViewLayout( const SwViewOption* pViewOpt, const SwRect* pVi
...
@@ -1865,7 +1865,7 @@ void SwRootFrm::CheckViewLayout( const SwViewOption* pViewOpt, const SwRect* pVi
}
}
else
else
{
{
OSL_ENSURE
(
pViewOpt
,
"CheckViewLayout required ViewOptions"
);
assert
(
pViewOpt
&&
"CheckViewLayout required ViewOptions"
);
const
sal_uInt16
nColumns
=
pViewOpt
->
GetViewLayoutColumns
();
const
sal_uInt16
nColumns
=
pViewOpt
->
GetViewLayoutColumns
();
const
bool
bBookMode
=
pViewOpt
->
IsViewLayoutBookMode
();
const
bool
bBookMode
=
pViewOpt
->
IsViewLayoutBookMode
();
...
...
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