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
5a616ca9
Kaydet (Commit)
5a616ca9
authored
Kas 12, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: loplugin:badstatics: _one_ global pActiveEdWnd is enough
Change-Id: Idb0eacc8c14b2c56e8255c47c8330e5e6572d5de
üst
5140fe15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
scuitphfedit.cxx
sc/source/ui/pagedlg/scuitphfedit.cxx
+2
-4
tphfedit.cxx
sc/source/ui/pagedlg/tphfedit.cxx
+3
-3
No files found.
sc/source/ui/pagedlg/scuitphfedit.cxx
Dosyayı görüntüle @
5a616ca9
...
@@ -51,8 +51,6 @@
...
@@ -51,8 +51,6 @@
// STATIC DATA -----------------------------------------------------------
// STATIC DATA -----------------------------------------------------------
static
VclPtr
<
ScEditWindow
>
pActiveEdWnd
=
nullptr
;
// class ScHFEditPage
// class ScHFEditPage
ScHFEditPage
::
ScHFEditPage
(
vcl
::
Window
*
pParent
,
ScHFEditPage
::
ScHFEditPage
(
vcl
::
Window
*
pParent
,
...
@@ -793,7 +791,7 @@ IMPL_LINK_TYPED( ScHFEditPage, ListHdl_Impl, ListBox&, rList, void )
...
@@ -793,7 +791,7 @@ IMPL_LINK_TYPED( ScHFEditPage, ListHdl_Impl, ListBox&, rList, void )
IMPL_LINK_TYPED
(
ScHFEditPage
,
ClickHdl
,
Button
*
,
pBtn
,
void
)
IMPL_LINK_TYPED
(
ScHFEditPage
,
ClickHdl
,
Button
*
,
pBtn
,
void
)
{
{
pActiveEdWnd
=
::
GetScEditWindow
();
VclPtr
<
ScEditWindow
>
pActiveEdWnd
=
::
GetScEditWindow
();
if
(
!
pActiveEdWnd
)
if
(
!
pActiveEdWnd
)
return
;
return
;
...
@@ -824,7 +822,7 @@ IMPL_LINK_TYPED( ScHFEditPage, ClickHdl, Button*, pBtn, void )
...
@@ -824,7 +822,7 @@ IMPL_LINK_TYPED( ScHFEditPage, ClickHdl, Button*, pBtn, void )
IMPL_STATIC_LINK_TYPED
(
ScHFEditPage
,
MenuHdl
,
ScExtIButton
&
,
rBtn
,
void
)
IMPL_STATIC_LINK_TYPED
(
ScHFEditPage
,
MenuHdl
,
ScExtIButton
&
,
rBtn
,
void
)
{
{
pActiveEdWnd
=
::
GetScEditWindow
();
VclPtr
<
ScEditWindow
>
pActiveEdWnd
=
::
GetScEditWindow
();
if
(
!
pActiveEdWnd
)
if
(
!
pActiveEdWnd
)
return
;
return
;
...
...
sc/source/ui/pagedlg/tphfedit.cxx
Dosyayı görüntüle @
5a616ca9
...
@@ -48,11 +48,11 @@
...
@@ -48,11 +48,11 @@
#include <memory>
#include <memory>
// STATIC DATA -----------------------------------------------------------
// STATIC DATA -----------------------------------------------------------
static
VclPtr
<
ScEditWindow
>
pActiveEdWnd
=
nullptr
;
static
VclPtr
<
ScEditWindow
>
g_
pActiveEdWnd
=
nullptr
;
ScEditWindow
*
GetScEditWindow
()
ScEditWindow
*
GetScEditWindow
()
{
{
return
pActiveEdWnd
;
return
g_
pActiveEdWnd
;
}
}
static
void
lcl_GetFieldData
(
ScHeaderFieldData
&
rData
)
static
void
lcl_GetFieldData
(
ScHeaderFieldData
&
rData
)
...
@@ -283,7 +283,7 @@ void ScEditWindow::Command( const CommandEvent& rCEvt )
...
@@ -283,7 +283,7 @@ void ScEditWindow::Command( const CommandEvent& rCEvt )
void
ScEditWindow
::
GetFocus
()
void
ScEditWindow
::
GetFocus
()
{
{
pEdView
->
ShowCursor
();
pEdView
->
ShowCursor
();
pActiveEdWnd
=
this
;
g_
pActiveEdWnd
=
this
;
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessible
>
xTemp
=
xAcc
;
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessible
>
xTemp
=
xAcc
;
if
(
xTemp
.
is
()
&&
pAcc
)
if
(
xTemp
.
is
()
&&
pAcc
)
...
...
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