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
53d18f27
Kaydet (Commit)
53d18f27
authored
Tem 14, 2016
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify dynamic_cast followed by a static_cast.
Change-Id: Id4ab82db5e0ac95e26299730797a6eac0f925fb8
üst
b48f0eed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
navipi.cxx
sw/source/uibase/utlui/navipi.cxx
+5
-5
No files found.
sw/source/uibase/utlui/navipi.cxx
Dosyayı görüntüle @
53d18f27
...
...
@@ -972,21 +972,21 @@ void SwNavigationPI::Notify( SfxBroadcaster& rBrdc, const SfxHint& rHint )
{
if
(
&
rBrdc
==
m_pCreateView
)
{
if
(
dynamic_cast
<
const
SfxSimpleHint
*>
(
&
rHint
)
&&
static_cast
<
const
SfxSimpleHint
&>
(
rHint
).
GetId
()
==
SFX_HINT_DYING
)
const
SfxSimpleHint
*
pHint
=
dynamic_cast
<
const
SfxSimpleHint
*>
(
&
rHint
);
if
(
pHint
&&
pHint
->
GetId
()
==
SFX_HINT_DYING
)
{
m_pCreateView
=
nullptr
;
}
}
else
{
if
(
dynamic_cast
<
const
SfxEventHint
*>
(
&
rHint
))
if
(
const
SfxEventHint
*
pHint
=
dynamic_cast
<
const
SfxEventHint
*>
(
&
rHint
))
{
if
(
m_pxObjectShell
&&
static_cast
<
const
SfxEventHint
&>
(
rHint
).
GetEventId
()
==
SFX_EVENT_CLOSEAPP
)
if
(
m_pxObjectShell
&&
pHint
->
GetEventId
()
==
SFX_EVENT_CLOSEAPP
)
{
DELETEZ
(
m_pxObjectShell
);
}
else
if
(
static_cast
<
const
SfxEventHint
&>
(
rHint
).
GetEventId
()
==
SFX_EVENT_OPENDOC
)
else
if
(
pHint
->
GetEventId
()
==
SFX_EVENT_OPENDOC
)
{
SwView
*
pActView
=
GetCreateView
();
...
...
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