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
ed8a2341
Kaydet (Commit)
ed8a2341
authored
Haz 16, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
properly prefix various global variables and hide them
Change-Id: I6b97e6a4c6ac4c0e26bcbb2b132b333920c16f19
üst
f04c48a7
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
96 additions
and
49 deletions
+96
-49
cjkoptions.cxx
svl/source/config/cjkoptions.cxx
+8
-5
ctloptions.cxx
svl/source/config/ctloptions.cxx
+9
-5
menuoptions.cxx
svtools/source/config/menuoptions.cxx
+7
-3
miscopt.cxx
svtools/source/config/miscopt.cxx
+7
-3
cmdoptions.cxx
unotools/source/config/cmdoptions.cxx
+7
-3
defaultoptions.cxx
unotools/source/config/defaultoptions.cxx
+7
-3
extendedsecurityoptions.cxx
unotools/source/config/extendedsecurityoptions.cxx
+7
-3
fontoptions.cxx
unotools/source/config/fontoptions.cxx
+7
-3
historyoptions.cxx
unotools/source/config/historyoptions.cxx
+7
-3
localisationoptions.cxx
unotools/source/config/localisationoptions.cxx
+7
-3
misccfg.cxx
unotools/source/config/misccfg.cxx
+3
-3
pathoptions.cxx
unotools/source/config/pathoptions.cxx
+3
-3
printwarningoptions.cxx
unotools/source/config/printwarningoptions.cxx
+3
-3
securityoptions.cxx
unotools/source/config/securityoptions.cxx
+7
-3
syslocale.cxx
unotools/source/misc/syslocale.cxx
+7
-3
No files found.
svl/source/config/cjkoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -376,20 +376,23 @@ bool SvtCJKOptions_Impl::IsReadOnly(SvtCJKOptions::EOption eOption) const
return
bReadOnly
;
}
// global
std
::
weak_ptr
<
SvtCJKOptions_Impl
>
pCJKOptions
;
namespace
{
namespace
{
struct
theCJKOptionsMutex
:
public
rtl
::
Static
<
::
osl
::
Mutex
,
theCJKOptionsMutex
>
{};
}
// global
std
::
weak_ptr
<
SvtCJKOptions_Impl
>
g_pCJKOptions
;
struct
theCJKOptionsMutex
:
public
rtl
::
Static
<
::
osl
::
Mutex
,
theCJKOptionsMutex
>
{};
}
SvtCJKOptions
::
SvtCJKOptions
(
bool
bDontLoad
)
{
// Global access, must be guarded (multithreading)
::
osl
::
MutexGuard
aGuard
(
theCJKOptionsMutex
::
get
()
);
pImpl
=
pCJKOptions
.
lock
();
pImpl
=
g_
pCJKOptions
.
lock
();
if
(
!
pImpl
)
{
pImpl
=
std
::
make_shared
<
SvtCJKOptions_Impl
>
();
pCJKOptions
=
pImpl
;
g_
pCJKOptions
=
pImpl
;
ItemHolder2
::
holdConfigItem
(
E_CJKOPTIONS
);
}
...
...
svl/source/config/ctloptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -372,21 +372,25 @@ void SvtCTLOptions_Impl::SetCTLTextNumerals( SvtCTLOptions::TextNumerals _eNumer
NotifyListeners
(
0
);
}
}
// global
std
::
weak_ptr
<
SvtCTLOptions_Impl
>
pCTLOptions
;
namespace
{
struct
CTLMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
CTLMutex
>
{};
}
namespace
{
// global
std
::
weak_ptr
<
SvtCTLOptions_Impl
>
g_pCTLOptions
;
struct
CTLMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
CTLMutex
>
{};
}
SvtCTLOptions
::
SvtCTLOptions
(
bool
bDontLoad
)
{
// Global access, must be guarded (multithreading)
::
osl
::
MutexGuard
aGuard
(
CTLMutex
::
get
()
);
m_pImpl
=
pCTLOptions
.
lock
();
m_pImpl
=
g_
pCTLOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtCTLOptions_Impl
>
();
pCTLOptions
=
m_pImpl
;
g_
pCTLOptions
=
m_pImpl
;
ItemHolder2
::
holdConfigItem
(
E_CTLOPTIONS
);
}
...
...
svtools/source/config/menuoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -315,18 +315,22 @@ Sequence< OUString > SvtMenuOptions_Impl::impl_GetPropertyNames()
return
seqPropertyNames
;
}
std
::
weak_ptr
<
SvtMenuOptions_Impl
>
m_pMenuOptions
;
namespace
{
std
::
weak_ptr
<
SvtMenuOptions_Impl
>
g_pMenuOptions
;
}
SvtMenuOptions
::
SvtMenuOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
GetOwnStaticMutex
()
);
m_pImpl
=
m
_pMenuOptions
.
lock
();
m_pImpl
=
g
_pMenuOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtMenuOptions_Impl
>
();
m
_pMenuOptions
=
m_pImpl
;
g
_pMenuOptions
=
m_pImpl
;
svtools
::
ItemHolder2
::
holdConfigItem
(
E_MENUOPTIONS
);
}
}
...
...
svtools/source/config/miscopt.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -643,18 +643,22 @@ Sequence< OUString > SvtMiscOptions_Impl::GetPropertyNames()
return
seqPropertyNames
;
}
std
::
weak_ptr
<
SvtMiscOptions_Impl
>
m_pMiscOptions
;
namespace
{
std
::
weak_ptr
<
SvtMiscOptions_Impl
>
g_pMiscOptions
;
}
SvtMiscOptions
::
SvtMiscOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
GetInitMutex
()
);
m_pImpl
=
m
_pMiscOptions
.
lock
();
m_pImpl
=
g
_pMiscOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtMiscOptions_Impl
>
();
m
_pMiscOptions
=
m_pImpl
;
g
_pMiscOptions
=
m_pImpl
;
svtools
::
ItemHolder2
::
holdConfigItem
(
E_MISCOPTIONS
);
}
}
...
...
unotools/source/config/cmdoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -286,18 +286,22 @@ Sequence< OUString > SvtCommandOptions_Impl::impl_GetPropertyNames()
return
lDisabledItems
;
}
std
::
weak_ptr
<
SvtCommandOptions_Impl
>
m_pCommandOptions
;
namespace
{
std
::
weak_ptr
<
SvtCommandOptions_Impl
>
g_pCommandOptions
;
}
SvtCommandOptions
::
SvtCommandOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
GetOwnStaticMutex
()
);
m_pImpl
=
m
_pCommandOptions
.
lock
();
m_pImpl
=
g
_pCommandOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtCommandOptions_Impl
>
();
m
_pCommandOptions
=
m_pImpl
;
g
_pCommandOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_CMDOPTIONS
);
}
}
...
...
unotools/source/config/defaultoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -104,7 +104,11 @@ private:
// global ----------------------------------------------------------------
std
::
weak_ptr
<
SvtDefaultOptions_Impl
>
pOptions
;
namespace
{
std
::
weak_ptr
<
SvtDefaultOptions_Impl
>
g_pOptions
;
}
typedef
OUString
SvtDefaultOptions_Impl
::
*
PathStrPtr
;
...
...
@@ -326,11 +330,11 @@ SvtDefaultOptions::SvtDefaultOptions()
{
// Global access, must be guarded (multithreading)
::
osl
::
MutexGuard
aGuard
(
lclMutex
::
get
()
);
pImpl
=
pOptions
.
lock
();
pImpl
=
g_
pOptions
.
lock
();
if
(
!
pImpl
)
{
pImpl
=
std
::
make_shared
<
SvtDefaultOptions_Impl
>
();
pOptions
=
pImpl
;
g_
pOptions
=
pImpl
;
ItemHolder1
::
holdConfigItem
(
E_DEFAULTOPTIONS
);
}
}
...
...
unotools/source/config/extendedsecurityoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -239,18 +239,22 @@ Sequence< OUString > SvtExtendedSecurityOptions_Impl::GetPropertyNames()
return
seqPropertyNames
;
}
std
::
weak_ptr
<
SvtExtendedSecurityOptions_Impl
>
m_pExtendedSecurityOptions
;
namespace
{
std
::
weak_ptr
<
SvtExtendedSecurityOptions_Impl
>
g_pExtendedSecurityOptions
;
}
SvtExtendedSecurityOptions
::
SvtExtendedSecurityOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
GetInitMutex
()
);
m_pImpl
=
m
_pExtendedSecurityOptions
.
lock
();
m_pImpl
=
g
_pExtendedSecurityOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtExtendedSecurityOptions_Impl
>
();
m
_pExtendedSecurityOptions
=
m_pImpl
;
g
_pExtendedSecurityOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_EXTENDEDSECURITYOPTIONS
);
}
}
...
...
unotools/source/config/fontoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -243,18 +243,22 @@ Sequence< OUString > SvtFontOptions_Impl::impl_GetPropertyNames()
return
seqPropertyNames
;
}
std
::
weak_ptr
<
SvtFontOptions_Impl
>
m_pFontOptions
;
namespace
{
std
::
weak_ptr
<
SvtFontOptions_Impl
>
g_pFontOptions
;
}
SvtFontOptions
::
SvtFontOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
impl_GetOwnStaticMutex
()
);
m_pImpl
=
m
_pFontOptions
.
lock
();
m_pImpl
=
g
_pFontOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtFontOptions_Impl
>
();
m
_pFontOptions
=
m_pImpl
;
g
_pFontOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_FONTOPTIONS
);
}
}
...
...
unotools/source/config/historyoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -523,17 +523,21 @@ void SvtHistoryOptions_Impl::DeleteItem(EHistoryType eHistory, const OUString& s
}
}
std
::
weak_ptr
<
SvtHistoryOptions_Impl
>
m_pHistoryOptions
;
namespace
{
std
::
weak_ptr
<
SvtHistoryOptions_Impl
>
g_pHistoryOptions
;
}
SvtHistoryOptions
::
SvtHistoryOptions
()
{
MutexGuard
aGuard
(
theHistoryOptionsMutex
::
get
());
m_pImpl
=
m
_pHistoryOptions
.
lock
();
m_pImpl
=
g
_pHistoryOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtHistoryOptions_Impl
>
();
m
_pHistoryOptions
=
m_pImpl
;
g
_pHistoryOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_HISTORYOPTIONS
);
}
}
...
...
unotools/source/config/localisationoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -218,18 +218,22 @@ Sequence< OUString > SvtLocalisationOptions_Impl::GetPropertyNames()
return
seqPropertyNames
;
}
std
::
weak_ptr
<
SvtLocalisationOptions_Impl
>
m_pLocalisationOptions
;
namespace
{
std
::
weak_ptr
<
SvtLocalisationOptions_Impl
>
g_pLocalisationOptions
;
}
SvtLocalisationOptions
::
SvtLocalisationOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
GetOwnStaticMutex
()
);
m_pImpl
=
m
_pLocalisationOptions
.
lock
();
m_pImpl
=
g
_pLocalisationOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtLocalisationOptions_Impl
>
();
m
_pLocalisationOptions
=
m_pImpl
;
g
_pLocalisationOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_LOCALISATIONOPTIONS
);
}
}
...
...
unotools/source/config/misccfg.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -33,7 +33,7 @@ namespace utl
{
class
SfxMiscCfg
;
std
::
weak_ptr
<
SfxMiscCfg
>
m
_pOptions
;
std
::
weak_ptr
<
SfxMiscCfg
>
g
_pOptions
;
class
SfxMiscCfg
:
public
utl
::
ConfigItem
{
...
...
@@ -186,11 +186,11 @@ MiscCfg::MiscCfg( )
{
// Global access, must be guarded (multithreading)
::
osl
::
MutexGuard
aGuard
(
LocalSingleton
::
get
()
);
m_pImpl
=
m
_pOptions
.
lock
();
m_pImpl
=
g
_pOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SfxMiscCfg
>
();
m
_pOptions
=
m_pImpl
;
g
_pOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_MISCCFG
);
}
...
...
unotools/source/config/pathoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -162,7 +162,7 @@ class SvtPathOptions_Impl
// global ----------------------------------------------------------------
static
std
::
weak_ptr
<
SvtPathOptions_Impl
>
pOptions
;
static
std
::
weak_ptr
<
SvtPathOptions_Impl
>
g_
pOptions
;
// functions -------------------------------------------------------------
struct
PropertyStruct
...
...
@@ -446,11 +446,11 @@ SvtPathOptions::SvtPathOptions()
{
// Global access, must be guarded (multithreading)
::
osl
::
MutexGuard
aGuard
(
lclMutex
::
get
()
);
pImpl
=
pOptions
.
lock
();
pImpl
=
g_
pOptions
.
lock
();
if
(
!
pImpl
)
{
pImpl
=
std
::
make_shared
<
SvtPathOptions_Impl
>
();
pOptions
=
pImpl
;
g_
pOptions
=
pImpl
;
ItemHolder1
::
holdConfigItem
(
E_PATHOPTIONS
);
}
}
...
...
unotools/source/config/printwarningoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -221,18 +221,18 @@ Sequence< OUString > SvtPrintWarningOptions_Impl::impl_GetPropertyNames()
return
seqPropertyNames
;
}
std
::
weak_ptr
<
SvtPrintWarningOptions_Impl
>
m
_pPrintWarningOptions
;
std
::
weak_ptr
<
SvtPrintWarningOptions_Impl
>
g
_pPrintWarningOptions
;
SvtPrintWarningOptions
::
SvtPrintWarningOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
GetOwnStaticMutex
()
);
m_pImpl
=
m
_pPrintWarningOptions
.
lock
();
m_pImpl
=
g
_pPrintWarningOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtPrintWarningOptions_Impl
>
();
m
_pPrintWarningOptions
=
m_pImpl
;
g
_pPrintWarningOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_PRINTWARNINGOPTIONS
);
}
}
...
...
unotools/source/config/securityoptions.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -930,18 +930,22 @@ Sequence< OUString > SvtSecurityOptions_Impl::GetPropertyNames()
return
seqPropertyNames
;
}
std
::
weak_ptr
<
SvtSecurityOptions_Impl
>
m_pSecurityOptions
;
namespace
{
std
::
weak_ptr
<
SvtSecurityOptions_Impl
>
g_pSecurityOptions
;
}
SvtSecurityOptions
::
SvtSecurityOptions
()
{
// Global access, must be guarded (multithreading!).
MutexGuard
aGuard
(
GetInitMutex
()
);
m_pImpl
=
m
_pSecurityOptions
.
lock
();
m_pImpl
=
g
_pSecurityOptions
.
lock
();
if
(
!
m_pImpl
)
{
m_pImpl
=
std
::
make_shared
<
SvtSecurityOptions_Impl
>
();
m
_pSecurityOptions
=
m_pImpl
;
g
_pSecurityOptions
=
m_pImpl
;
ItemHolder1
::
holdConfigItem
(
E_SECURITYOPTIONS
);
}
...
...
unotools/source/misc/syslocale.cxx
Dosyayı görüntüle @
ed8a2341
...
...
@@ -34,7 +34,11 @@
using
namespace
osl
;
using
namespace
com
::
sun
::
star
;
std
::
weak_ptr
<
SvtSysLocale_Impl
>
pSysLocale
;
namespace
{
std
::
weak_ptr
<
SvtSysLocale_Impl
>
g_pSysLocale
;
}
class
SvtSysLocale_Impl
:
public
utl
::
ConfigurationListener
{
...
...
@@ -113,11 +117,11 @@ void SvtSysLocale_Impl::setDateAcceptancePatternsConfig()
SvtSysLocale
::
SvtSysLocale
()
{
MutexGuard
aGuard
(
GetMutex
()
);
pImpl
=
pSysLocale
.
lock
();
pImpl
=
g_
pSysLocale
.
lock
();
if
(
!
pImpl
)
{
pImpl
=
std
::
make_shared
<
SvtSysLocale_Impl
>
();
pSysLocale
=
pImpl
;
g_
pSysLocale
=
pImpl
;
}
}
...
...
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