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
11292487
Kaydet (Commit)
11292487
authored
Şub 24, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid unnecessary bad downcasts to ToolBox
Change-Id: I239aee06ce543b6f7c213d845313ca51b3a5502d
üst
f02ee5b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vclxaccessibletoolbox.cxx
accessibility/source/standard/vclxaccessibletoolbox.cxx
+6
-6
No files found.
accessibility/source/standard/vclxaccessibletoolbox.cxx
Dosyayı görüntüle @
11292487
...
@@ -528,12 +528,12 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow
...
@@ -528,12 +528,12 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow
// to prevent an early release of the toolbox (VCLEVENT_OBJECT_DYING)
// to prevent an early release of the toolbox (VCLEVENT_OBJECT_DYING)
Reference
<
XAccessibleContext
>
xTemp
=
this
;
Reference
<
XAccessibleContext
>
xTemp
=
this
;
ToolBox
*
pToolBox
=
static_cast
<
ToolBox
*
>
(
GetWindow
()
);
switch
(
rVclWindowEvent
.
GetId
()
)
switch
(
rVclWindowEvent
.
GetId
()
)
{
{
case
VCLEVENT_TOOLBOX_CLICK
:
case
VCLEVENT_TOOLBOX_CLICK
:
case
VCLEVENT_TOOLBOX_SELECT
:
case
VCLEVENT_TOOLBOX_SELECT
:
{
{
ToolBox
*
pToolBox
=
static_cast
<
ToolBox
*
>
(
GetWindow
()
);
if
(
rVclWindowEvent
.
GetData
()
)
if
(
rVclWindowEvent
.
GetData
()
)
{
{
UpdateChecked_Impl
(
(
sal_Int32
)
reinterpret_cast
<
sal_IntPtr
>
(
rVclWindowEvent
.
GetData
())
);
UpdateChecked_Impl
(
(
sal_Int32
)
reinterpret_cast
<
sal_IntPtr
>
(
rVclWindowEvent
.
GetData
())
);
...
@@ -617,14 +617,14 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow
...
@@ -617,14 +617,14 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow
case
VCLEVENT_OBJECT_DYING
:
case
VCLEVENT_OBJECT_DYING
:
{
{
// if this toolbox is a subtoolbox, we have to relese it from its parent
// if this toolbox is a subtoolbox, we have to relese it from its parent
ToolBox
*
pBox
=
static_cast
<
ToolBox
*
>
(
GetWindow
()
);
vcl
::
Window
*
pWin
=
GetWindow
(
);
if
(
p
Box
&&
pBox
->
GetParent
()
&&
if
(
p
Win
&&
pWin
->
GetParent
()
&&
p
Box
->
GetParent
()
->
GetType
()
==
WINDOW_TOOLBOX
)
p
Win
->
GetParent
()
->
GetType
()
==
WINDOW_TOOLBOX
)
{
{
VCLXAccessibleToolBox
*
pParent
=
static_cast
<
VCLXAccessibleToolBox
*
>
(
VCLXAccessibleToolBox
*
pParent
=
static_cast
<
VCLXAccessibleToolBox
*
>
(
p
Box
->
GetParent
()
->
GetAccessible
()
->
getAccessibleContext
().
get
()
);
p
Win
->
GetParent
()
->
GetAccessible
()
->
getAccessibleContext
().
get
()
);
if
(
pParent
)
if
(
pParent
)
pParent
->
ReleaseSubToolBox
(
pBox
);
pParent
->
ReleaseSubToolBox
(
static_cast
<
ToolBox
*>
(
pWin
)
);
}
}
// dispose all items
// dispose all items
...
...
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