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
684d499a
Kaydet (Commit)
684d499a
authored
Agu 13, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make it a const array
üst
5bc86df0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
configmgr.cxx
unotools/source/config/configmgr.cxx
+10
-10
No files found.
unotools/source/config/configmgr.cxx
Dosyayı görüntüle @
684d499a
...
...
@@ -64,8 +64,8 @@ using ::rtl::OString;
#define UNISTRING(s) rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s))
//-----------------------------------------------------------------------------
const
char
*
pConfigBaseURL
=
"/org.openoffice."
;
const
char
*
pAccessSrvc
=
"com.sun.star.configuration.ConfigurationUpdateAccess"
;
const
char
aConfigBaseURL
[]
=
"/org.openoffice."
;
const
char
aAccessSrvc
[]
=
"com.sun.star.configuration.ConfigurationUpdateAccess"
;
namespace
{
...
...
@@ -252,7 +252,7 @@ Reference< XHierarchicalNameAccess> ConfigManager::AcquireTree(utl::ConfigItem&
}
OSL_ENSURE
(
bFound
,
"AcquireTree: ConfigItem unknown!"
);
#endif
OUString
sPath
(
OUString
::
createFromAscii
(
p
ConfigBaseURL
));
OUString
sPath
(
RTL_CONSTASCII_USTRINGPARAM
(
a
ConfigBaseURL
));
sPath
+=
rCfgItem
.
GetSubTreeName
();
Sequence
<
Any
>
aArgs
(
2
);
Any
*
pArgs
=
aArgs
.
getArray
();
...
...
@@ -287,7 +287,7 @@ Reference< XHierarchicalNameAccess> ConfigManager::AcquireTree(utl::ConfigItem&
try
{
xIFace
=
xCfgProvider
->
createInstanceWithArguments
(
OUString
::
createFromAscii
(
pAccessSrvc
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
aAccessSrvc
)
),
aArgs
);
}
catch
(
const
Exception
&
rEx
)
...
...
@@ -357,7 +357,7 @@ ConfigManager& ConfigManager::GetConfigManager()
rtl
::
OUString
ConfigManager
::
GetConfigBaseURL
()
{
return
OUString
::
createFromAscii
(
pConfigBaseURL
);
return
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
aConfigBaseURL
)
);
}
Any
ConfigManager
::
GetDirectConfigProperty
(
ConfigProperty
eProp
)
...
...
@@ -463,7 +463,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
}
}
OUString
sPath
=
OUString
::
createFromAscii
(
pConfigBaseURL
);
OUString
sPath
(
RTL_CONSTASCII_USTRINGPARAM
(
aConfigBaseURL
)
);
switch
(
eProp
)
{
case
LOCALE
:
sPath
+=
UNISTRING
(
"Setup/L10N"
);
break
;
...
...
@@ -493,7 +493,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
try
{
xIFace
=
xCfgProvider
->
createInstanceWithArguments
(
OUString
::
createFromAscii
(
pAccessSrvc
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
aAccessSrvc
)
),
aArgs
);
}
...
...
@@ -625,7 +625,7 @@ Reference< XHierarchicalNameAccess> ConfigManager::GetHierarchyAccess(const OUSt
try
{
xIFace
=
xCfgProvider
->
createInstanceWithArguments
(
OUString
::
createFromAscii
(
pAccessSrvc
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
aAccessSrvc
)
),
aArgs
);
}
#if OSL_DEBUG_LEVEL > 1
...
...
@@ -648,7 +648,7 @@ Reference< XHierarchicalNameAccess> ConfigManager::GetHierarchyAccess(const OUSt
Any
ConfigManager
::
GetLocalProperty
(
const
OUString
&
rProperty
)
{
OUString
sPath
(
OUString
::
createFromAscii
(
p
ConfigBaseURL
));
OUString
sPath
(
RTL_CONSTASCII_USTRINGPARAM
(
a
ConfigBaseURL
));
sPath
+=
rProperty
;
OUString
sNode
,
sProperty
;
...
...
@@ -680,7 +680,7 @@ Any ConfigManager::GetLocalProperty(const OUString& rProperty)
void
ConfigManager
::
PutLocalProperty
(
const
OUString
&
rProperty
,
const
Any
&
rValue
)
{
OUString
sPath
(
OUString
::
createFromAscii
(
p
ConfigBaseURL
));
OUString
sPath
(
RTL_CONSTASCII_USTRINGPARAM
(
a
ConfigBaseURL
));
sPath
+=
rProperty
;
OUString
sNode
,
sProperty
;
...
...
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