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
839675e7
Kaydet (Commit)
839675e7
authored
Şub 27, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GetFullKeyCode() was identical to GetFullCode()
Change-Id: Ib1b51d7eef8d7076271f612b2d674c2356037bc8
üst
c40cb830
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
keycod.hxx
vcl/inc/vcl/keycod.hxx
+1
-2
accel.cxx
vcl/source/window/accel.cxx
+3
-3
No files found.
vcl/inc/vcl/keycod.hxx
Dosyayı görüntüle @
839675e7
...
...
@@ -49,7 +49,6 @@ public:
KeyCode
(
KeyFuncType
eFunction
);
sal_uInt16
GetFullCode
()
const
{
return
nCode
;
}
sal_uInt16
GetFullKeyCode
()
const
{
return
(
nCode
)
;
}
KeyFuncType
GetFullFunction
()
const
{
return
eFunc
;
}
sal_Bool
IsDefinedKeyCodeEqual
(
const
KeyCode
&
rKeyCode
)
const
;
...
...
@@ -116,7 +115,7 @@ inline sal_Bool KeyCode::operator !=( const KeyCode& rKeyCode ) const
inline
sal_Bool
KeyCode
::
IsDefinedKeyCodeEqual
(
const
KeyCode
&
rKeyCode
)
const
{
if
(
(
eFunc
==
KEYFUNC_DONTKNOW
)
&&
(
rKeyCode
.
eFunc
==
KEYFUNC_DONTKNOW
)
)
return
(
GetFull
KeyCode
()
==
rKeyCode
.
GetFullKey
Code
());
return
(
GetFull
Code
()
==
rKeyCode
.
GetFull
Code
());
return
(
GetFunction
()
==
rKeyCode
.
GetFunction
());
}
...
...
vcl/source/window/accel.cxx
Dosyayı görüntüle @
839675e7
...
...
@@ -170,7 +170,7 @@ void Accelerator::ImplInit()
ImplAccelEntry
*
Accelerator
::
ImplGetAccelData
(
const
KeyCode
&
rKeyCode
)
const
{
ImplAccelMap
::
iterator
it
=
mpData
->
maKeyMap
.
find
(
rKeyCode
.
GetFull
Key
Code
()
);
ImplAccelMap
::
iterator
it
=
mpData
->
maKeyMap
.
find
(
rKeyCode
.
GetFullCode
()
);
if
(
it
!=
mpData
->
maKeyMap
.
end
()
)
return
it
->
second
;
else
...
...
@@ -195,7 +195,7 @@ void Accelerator::ImplCopyData( ImplAccelData& rAccelData )
else
pEntry
->
mpAutoAccel
=
NULL
;
mpData
->
maKeyMap
.
insert
(
std
::
make_pair
(
pEntry
->
maKeyCode
.
GetFull
Key
Code
(),
pEntry
)
);
mpData
->
maKeyMap
.
insert
(
std
::
make_pair
(
pEntry
->
maKeyCode
.
GetFullCode
(),
pEntry
)
);
mpData
->
maIdList
.
push_back
(
pEntry
);
}
}
...
...
@@ -256,7 +256,7 @@ void Accelerator::ImplInsertAccel( sal_uInt16 nItemId, const KeyCode& rKeyCode,
pEntry
->
mbEnabled
=
bEnable
;
// now into the tables
sal_uLong
nCode
=
rKeyCode
.
GetFull
Key
Code
();
sal_uLong
nCode
=
rKeyCode
.
GetFullCode
();
if
(
!
nCode
)
{
OSL_FAIL
(
"Accelerator::InsertItem(): KeyCode with KeyCode 0 not allowed"
);
...
...
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