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
e034b032
Kaydet (Commit)
e034b032
authored
Şub 10, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify the code a bit.
Change-Id: I57581fb0f3439ddc4a4848466f6925d962b04aea
üst
cc5ec805
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
24 deletions
+6
-24
moduleuiconfigurationmanager.cxx
...k/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+2
-7
uiconfigurationmanager.cxx
framework/source/uiconfiguration/uiconfigurationmanager.cxx
+4
-17
No files found.
framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Dosyayı görüntüle @
e034b032
...
...
@@ -1483,14 +1483,9 @@ Reference< ui::XAcceleratorConfiguration > SAL_CALL ModuleUIConfigurationManager
if
(
m_bDisposed
)
throw
DisposedException
();
Reference
<
XComponentContext
>
xContext
=
m_xContext
;
OUString
aModule
=
m_aModuleIdentifier
;
if
(
!
m_xModuleAcceleratorManager
.
is
()
)
{
Reference
<
ui
::
XAcceleratorConfiguration
>
xManager
=
ui
::
ModuleAcceleratorConfiguration
::
createWithModuleIdentifier
(
xContext
,
aModule
);
m_xModuleAcceleratorManager
=
xManager
;
}
m_xModuleAcceleratorManager
=
ui
::
ModuleAcceleratorConfiguration
::
createWithModuleIdentifier
(
m_xContext
,
m_aModuleIdentifier
);
return
m_xModuleAcceleratorManager
;
}
...
...
framework/source/uiconfiguration/uiconfigurationmanager.cxx
Dosyayı görüntüle @
e034b032
...
...
@@ -1178,24 +1178,11 @@ Reference< XAcceleratorConfiguration > SAL_CALL UIConfigurationManager::getShort
// SAFE ->
ResetableGuard
aGuard
(
m_aLock
);
if
(
m_xAccConfig
.
is
())
return
m_xAccConfig
;
if
(
!
m_xAccConfig
.
is
())
m_xAccConfig
=
DocumentAcceleratorConfiguration
::
createWithDocumentRoot
(
m_xContext
,
m_xDocConfigStorage
);
Reference
<
XComponentContext
>
xContext
=
m_xContext
;
Reference
<
XStorage
>
xDocumentRoot
=
m_xDocConfigStorage
;
aGuard
.
unlock
();
// <- SAFE
Reference
<
XAcceleratorConfiguration
>
xAccConfig
=
DocumentAcceleratorConfiguration
::
createWithDocumentRoot
(
xContext
,
xDocumentRoot
);
// SAFE ->
aGuard
.
lock
();
m_xAccConfig
=
xAccConfig
;
aGuard
.
unlock
();
// <- SAFE
return
xAccConfig
;
return
m_xAccConfig
;
}
Reference
<
XInterface
>
SAL_CALL
UIConfigurationManager
::
getEventsManager
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
...
...
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