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
d14b4a6b
Kaydet (Commit)
d14b4a6b
authored
Ara 19, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1028600 Uninitialized scalar field
Change-Id: I0b4ee14ea2306786351ce20960a05e8f3058fb21
üst
e32fd5e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
window.h
vcl/inc/window.h
+1
-1
event.cxx
vcl/source/window/event.cxx
+3
-3
window.cxx
vcl/source/window/window.cxx
+1
-0
No files found.
vcl/inc/window.h
Dosyayı görüntüle @
d14b4a6b
...
@@ -232,7 +232,7 @@ public:
...
@@ -232,7 +232,7 @@ public:
VclPtr
<
vcl
::
Window
>
mpDlgCtrlDownWindow
;
VclPtr
<
vcl
::
Window
>
mpDlgCtrlDownWindow
;
std
::
vector
<
Link
<
VclWindowEvent
&
,
void
>>
maEventListeners
;
std
::
vector
<
Link
<
VclWindowEvent
&
,
void
>>
maEventListeners
;
std
::
vector
<
Link
<
VclWindowEvent
&
,
void
>>
maChildEventListeners
;
std
::
vector
<
Link
<
VclWindowEvent
&
,
void
>>
maChildEventListeners
;
int
m
a
ChildEventListenersIteratingCount
;
int
m
n
ChildEventListenersIteratingCount
;
std
::
set
<
Link
<
VclWindowEvent
&
,
void
>>
maChildEventListenersDeleted
;
std
::
set
<
Link
<
VclWindowEvent
&
,
void
>>
maChildEventListenersDeleted
;
// The canvas interface for this VCL window. Is persistent after the first GetCanvas() call
// The canvas interface for this VCL window. Is persistent after the first GetCanvas() call
...
...
vcl/source/window/event.cxx
Dosyayı görüntüle @
d14b4a6b
...
@@ -245,11 +245,11 @@ void Window::CallEventListeners( sal_uLong nEvent, void* pData )
...
@@ -245,11 +245,11 @@ void Window::CallEventListeners( sal_uLong nEvent, void* pData )
// Copy the list, because this can be destroyed when calling a Link...
// Copy the list, because this can be destroyed when calling a Link...
std
::
vector
<
Link
<
VclWindowEvent
&
,
void
>>
aCopy
(
rWindowImpl
.
maChildEventListeners
);
std
::
vector
<
Link
<
VclWindowEvent
&
,
void
>>
aCopy
(
rWindowImpl
.
maChildEventListeners
);
// we use an iterating counter/flag and a set of deleted Link's to avoid O(n^2) behaviour
// we use an iterating counter/flag and a set of deleted Link's to avoid O(n^2) behaviour
rWindowImpl
.
m
a
ChildEventListenersIteratingCount
++
;
rWindowImpl
.
m
n
ChildEventListenersIteratingCount
++
;
comphelper
::
ScopeGuard
aGuard
(
comphelper
::
ScopeGuard
aGuard
(
[
&
rWindowImpl
]()
[
&
rWindowImpl
]()
{
{
if
(
--
rWindowImpl
.
m
a
ChildEventListenersIteratingCount
==
0
)
if
(
--
rWindowImpl
.
m
n
ChildEventListenersIteratingCount
==
0
)
rWindowImpl
.
maChildEventListenersDeleted
.
clear
();
rWindowImpl
.
maChildEventListenersDeleted
.
clear
();
}
}
);
);
...
@@ -302,7 +302,7 @@ void Window::RemoveChildEventListener( const Link<VclWindowEvent&,void>& rEventL
...
@@ -302,7 +302,7 @@ void Window::RemoveChildEventListener( const Link<VclWindowEvent&,void>& rEventL
{
{
auto
&
rListeners
=
mpWindowImpl
->
maChildEventListeners
;
auto
&
rListeners
=
mpWindowImpl
->
maChildEventListeners
;
rListeners
.
erase
(
std
::
remove
(
rListeners
.
begin
(),
rListeners
.
end
(),
rEventListener
),
rListeners
.
end
()
);
rListeners
.
erase
(
std
::
remove
(
rListeners
.
begin
(),
rListeners
.
end
(),
rEventListener
),
rListeners
.
end
()
);
if
(
mpWindowImpl
->
m
a
ChildEventListenersIteratingCount
)
if
(
mpWindowImpl
->
m
n
ChildEventListenersIteratingCount
)
mpWindowImpl
->
maChildEventListenersDeleted
.
insert
(
rEventListener
);
mpWindowImpl
->
maChildEventListenersDeleted
.
insert
(
rEventListener
);
}
}
}
}
...
...
vcl/source/window/window.cxx
Dosyayı görüntüle @
d14b4a6b
...
@@ -631,6 +631,7 @@ WindowImpl::WindowImpl( WindowType nType )
...
@@ -631,6 +631,7 @@ WindowImpl::WindowImpl( WindowType nType )
mpNextOverlap
=
nullptr
;
// next overlap window of frame
mpNextOverlap
=
nullptr
;
// next overlap window of frame
mpLastFocusWindow
=
nullptr
;
// window for focus restore
mpLastFocusWindow
=
nullptr
;
// window for focus restore
mpDlgCtrlDownWindow
=
nullptr
;
// window for dialog control
mpDlgCtrlDownWindow
=
nullptr
;
// window for dialog control
mnChildEventListenersIteratingCount
=
0
;
mpFirstDel
=
nullptr
;
// Dtor notification list
mpFirstDel
=
nullptr
;
// Dtor notification list
mpUserData
=
nullptr
;
// user data
mpUserData
=
nullptr
;
// user data
mpCursor
=
nullptr
;
// cursor
mpCursor
=
nullptr
;
// cursor
...
...
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