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
c936fcb0
Kaydet (Commit)
c936fcb0
authored
Eki 31, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some more configuration::theDefaultProvider simplifications
Change-Id: I91ded7801f4959f2dac7b5b3e4c8d1f3929f4ed9
üst
56d7afee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
24 deletions
+7
-24
configurationprovider.cxx
configmgr/source/configurationprovider.cxx
+2
-18
ucbstore.cxx
ucb/source/core/ucbstore.cxx
+5
-6
No files found.
configmgr/source/configurationprovider.cxx
Dosyayı görüntüle @
c936fcb0
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "boost/noncopyable.hpp"
#include "boost/noncopyable.hpp"
#include "com/sun/star/beans/NamedValue.hpp"
#include "com/sun/star/beans/NamedValue.hpp"
#include "com/sun/star/beans/PropertyValue.hpp"
#include "com/sun/star/beans/PropertyValue.hpp"
#include "com/sun/star/configuration/theDefaultProvider.hpp"
#include "com/sun/star/lang/EventObject.hpp"
#include "com/sun/star/lang/EventObject.hpp"
#include "com/sun/star/lang/Locale.hpp"
#include "com/sun/star/lang/Locale.hpp"
#include "com/sun/star/lang/XLocalizable.hpp"
#include "com/sun/star/lang/XLocalizable.hpp"
...
@@ -32,7 +33,6 @@
...
@@ -32,7 +33,6 @@
#include "com/sun/star/lang/XServiceInfo.hpp"
#include "com/sun/star/lang/XServiceInfo.hpp"
#include "com/sun/star/lang/XSingleComponentFactory.hpp"
#include "com/sun/star/lang/XSingleComponentFactory.hpp"
#include "com/sun/star/uno/Any.hxx"
#include "com/sun/star/uno/Any.hxx"
#include "com/sun/star/uno/DeploymentException.hpp"
#include "com/sun/star/uno/Exception.hpp"
#include "com/sun/star/uno/Exception.hpp"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/RuntimeException.hpp"
...
@@ -432,23 +432,7 @@ Factory::createInstanceWithArgumentsAndContext(
...
@@ -432,23 +432,7 @@ Factory::createInstanceWithArgumentsAndContext(
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
)
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
)
{
{
if
(
Arguments
.
getLength
()
==
0
)
{
if
(
Arguments
.
getLength
()
==
0
)
{
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
instance
;
return
css
::
configuration
::
theDefaultProvider
::
get
(
Context
);
if
(
!
(
Context
->
getValueByName
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/singletons/"
"com.sun.star.configuration.theDefaultProvider"
)))
>>=
instance
)
||
!
instance
.
is
())
{
throw
css
::
uno
::
DeploymentException
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"component context fails to supply singleton"
" com.sun.star.configuration.theDefaultProvider"
)),
Context
);
}
return
instance
;
}
else
{
}
else
{
rtl
::
OUString
locale
;
rtl
::
OUString
locale
;
for
(
sal_Int32
i
=
0
;
i
<
Arguments
.
getLength
();
++
i
)
{
for
(
sal_Int32
i
=
0
;
i
<
Arguments
.
getLength
();
++
i
)
{
...
...
ucb/source/core/ucbstore.cxx
Dosyayı görüntüle @
c936fcb0
...
@@ -31,13 +31,16 @@
...
@@ -31,13 +31,16 @@
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertySetInfoChange.hpp>
#include <com/sun/star/beans/PropertySetInfoChange.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XNameReplace.hpp>
#include <com/sun/star/container/XNameReplace.hpp>
#include <com/sun/star/util/XChangesBatch.hpp>
#include <com/sun/star/util/XChangesBatch.hpp>
#include <comphelper/processfactory.hxx>
#include "ucbstore.hxx"
#include "ucbstore.hxx"
using
namespace
com
::
sun
::
star
::
beans
;
using
namespace
com
::
sun
::
star
::
beans
;
using
namespace
com
::
sun
::
star
::
configuration
;
using
namespace
com
::
sun
::
star
::
container
;
using
namespace
com
::
sun
::
star
::
container
;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
com
::
sun
::
star
::
ucb
;
using
namespace
com
::
sun
::
star
::
ucb
;
...
@@ -1037,12 +1040,8 @@ Reference< XMultiServiceFactory > PropertySetRegistry::getConfigProvider()
...
@@ -1037,12 +1040,8 @@ Reference< XMultiServiceFactory > PropertySetRegistry::getConfigProvider()
try
try
{
{
m_pImpl
->
m_xConfigProvider
m_pImpl
->
m_xConfigProvider
=
Reference
<
XMultiServiceFactory
>
(
=
theDefaultProvider
::
get
(
m_xSMgr
->
createInstance
(
comphelper
::
getComponentContext
(
m_xSMgr
)
);
OUString
(
"com.sun.star.configuration."
"ConfigurationProvider"
)
),
UNO_QUERY_THROW
);
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
...
...
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