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
fbc72e5f
Kaydet (Commit)
fbc72e5f
authored
Mar 18, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use SolarMutexGuard directly
Change-Id: I6ca88538be5400714fcbe880776ac30cca3d68ae
üst
65b718da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
acceleratorconfiguration.cxx
framework/source/accelerators/acceleratorconfiguration.cxx
+0
-0
moduleacceleratorconfiguration.cxx
...rk/source/accelerators/moduleacceleratorconfiguration.cxx
+5
-9
acceleratorconfiguration.hxx
...work/source/inc/accelerators/acceleratorconfiguration.hxx
+1
-3
No files found.
framework/source/accelerators/acceleratorconfiguration.cxx
Dosyayı görüntüle @
fbc72e5f
This diff is collapsed.
Click to expand it.
framework/source/accelerators/moduleacceleratorconfiguration.cxx
Dosyayı görüntüle @
fbc72e5f
...
...
@@ -19,7 +19,6 @@
#include <accelerators/acceleratorconfiguration.hxx>
#include <accelerators/presethandler.hxx>
#include <threadhelp/guard.hxx>
#include "helper/mischelper.hxx"
#include <acceleratorconst.h>
...
...
@@ -109,7 +108,7 @@ ModuleAcceleratorConfiguration::ModuleAcceleratorConfiguration(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>&
lArguments
)
:
ModuleAcceleratorConfiguration_BASE
(
xContext
)
{
Guard
aWriteLock
(
m_aLock
)
;
SolarMutexGuard
g
;
OUString
sModule
;
if
(
lArguments
.
getLength
()
==
1
&&
(
lArguments
[
0
]
>>=
sModule
))
...
...
@@ -126,8 +125,6 @@ ModuleAcceleratorConfiguration::ModuleAcceleratorConfiguration(
throw
css
::
uno
::
RuntimeException
(
OUString
(
"The module dependend accelerator configuration service was initialized with an empty module identifier!"
),
static_cast
<
::
cppu
::
OWeakObject
*
>
(
this
));
aWriteLock
.
unlock
();
}
ModuleAcceleratorConfiguration
::~
ModuleAcceleratorConfiguration
()
...
...
@@ -136,11 +133,10 @@ ModuleAcceleratorConfiguration::~ModuleAcceleratorConfiguration()
void
ModuleAcceleratorConfiguration
::
fillCache
()
{
// SAFE -> ----------------------------------
Guard
aReadLock
(
m_aLock
);
m_sModuleCFG
=
m_sModule
;
aReadLock
.
unlock
();
// <- SAFE ----------------------------------
{
SolarMutexGuard
g
;
m_sModuleCFG
=
m_sModule
;
}
#if 0
// get current office locale ... but dont cache it.
...
...
framework/source/inc/accelerators/acceleratorconfiguration.hxx
Dosyayı görüntüle @
fbc72e5f
...
...
@@ -26,7 +26,6 @@
#include <accelerators/keymapping.hxx>
#include <macros/xinterface.hxx>
#include <macros/xtypeprovider.hxx>
#include <threadhelp/threadhelpbase.hxx>
#include <general.h>
#include <stdtypes.h>
...
...
@@ -281,8 +280,7 @@ class XMLBasedAcceleratorConfiguration : public IStorageListener,
};
class
XCUBasedAcceleratorConfiguration
:
protected
ThreadHelpBase
,
// attention! Must be the first base class to guarentee right initialize lock ...
public
::
cppu
::
WeakImplHelper4
<
class
XCUBasedAcceleratorConfiguration
:
public
::
cppu
::
WeakImplHelper4
<
css
::
util
::
XChangesListener
,
css
::
lang
::
XComponent
,
css
::
form
::
XReset
,
// TODO use XPresetHandler instead if available
...
...
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