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
a26c2ee3
Kaydet (Commit)
a26c2ee3
authored
Nis 18, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Put create_bootstrap_macro_expander_factory properly into a header
...and fix the typo in its name.
üst
7746e420
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
bootstrap.cxx
cppuhelper/source/bootstrap.cxx
+1
-1
macro_expander.cxx
cppuhelper/source/macro_expander.cxx
+3
-5
macro_expander.hxx
cppuhelper/source/macro_expander.hxx
+9
-0
servicefactory.cxx
cppuhelper/source/servicefactory.cxx
+4
-4
No files found.
cppuhelper/source/bootstrap.cxx
Dosyayı görüntüle @
a26c2ee3
...
@@ -100,7 +100,7 @@ Bootstrap const & get_unorc() SAL_THROW(())
...
@@ -100,7 +100,7 @@ Bootstrap const & get_unorc() SAL_THROW(())
{
{
#ifdef ANDROID
#ifdef ANDROID
// Wouldn't it be lovely to avoid this fugly hard-coding.
// Wouldn't it be lovely to avoid this fugly hard-coding.
// The problem is that the 'create_boostrap_macro_expander_factory()'
// The problem is that the 'create_boo
t
strap_macro_expander_factory()'
// required for bootstrapping services, calls cppu::get_unorc directly
// required for bootstrapping services, calls cppu::get_unorc directly
// instead of re-using the BoostrapHandle from:
// instead of re-using the BoostrapHandle from:
// defaultBootstrap_InitialComponentContext
// defaultBootstrap_InitialComponentContext
...
...
cppuhelper/source/macro_expander.cxx
Dosyayı görüntüle @
a26c2ee3
...
@@ -181,11 +181,9 @@ Reference< XInterface > SAL_CALL service_create(
...
@@ -181,11 +181,9 @@ Reference< XInterface > SAL_CALL service_create(
}
}
namespace
cppu
namespace
cppuhelper
{
namespace
detail
{
{
//##################################################################################################
Reference
<
lang
::
XSingleComponentFactory
>
create_bootstrap_macro_expander_factory
()
SAL_THROW
(())
Reference
<
lang
::
XSingleComponentFactory
>
create_boostrap_macro_expander_factory
()
SAL_THROW
(())
{
{
Reference
<
lang
::
XSingleComponentFactory
>
free
(
::
cppu
::
createSingleComponentFactory
(
Reference
<
lang
::
XSingleComponentFactory
>
free
(
::
cppu
::
createSingleComponentFactory
(
service_create
,
service_create
,
...
@@ -203,6 +201,6 @@ Reference< lang::XSingleComponentFactory > create_boostrap_macro_expander_factor
...
@@ -203,6 +201,6 @@ Reference< lang::XSingleComponentFactory > create_boostrap_macro_expander_factor
SAL_NO_ACQUIRE
);
SAL_NO_ACQUIRE
);
}
}
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cppuhelper/source/macro_expander.hxx
Dosyayı görüntüle @
a26c2ee3
...
@@ -31,6 +31,12 @@
...
@@ -31,6 +31,12 @@
#include "sal/config.h"
#include "sal/config.h"
#include "com/sun/star/uno/Reference.hxx"
#include "sal/types.h"
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
lang
{
class
XSingleComponentFactory
;
}
}
}
}
namespace
rtl
{
class
OUString
;
}
namespace
rtl
{
class
OUString
;
}
namespace
cppuhelper
{
namespace
cppuhelper
{
...
@@ -54,6 +60,9 @@ namespace detail {
...
@@ -54,6 +60,9 @@ namespace detail {
*/
*/
::
rtl
::
OUString
expandMacros
(
rtl
::
OUString
const
&
text
);
::
rtl
::
OUString
expandMacros
(
rtl
::
OUString
const
&
text
);
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XSingleComponentFactory
>
create_bootstrap_macro_expander_factory
()
SAL_THROW
(());
}
}
}
}
...
...
cppuhelper/source/servicefactory.cxx
Dosyayı görüntüle @
a26c2ee3
...
@@ -58,6 +58,8 @@
...
@@ -58,6 +58,8 @@
#include <stdio.h>
#include <stdio.h>
#endif
#endif
#include "macro_expander.hxx"
#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) )
#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) )
...
@@ -73,9 +75,6 @@ namespace cppu
...
@@ -73,9 +75,6 @@ namespace cppu
Reference
<
security
::
XAccessController
>
Reference
<
security
::
XAccessController
>
createDefaultAccessController
()
SAL_THROW
(());
createDefaultAccessController
()
SAL_THROW
(());
Reference
<
lang
::
XSingleComponentFactory
>
create_boostrap_macro_expander_factory
()
SAL_THROW
(());
OUString
const
&
get_this_libpath
();
OUString
const
&
get_this_libpath
();
...
@@ -435,7 +434,8 @@ Reference< XComponentContext > bootstrapInitialContext(
...
@@ -435,7 +434,8 @@ Reference< XComponentContext > bootstrapInitialContext(
// macro expander singleton for loader
// macro expander singleton for loader
entry
.
bLateInitService
=
true
;
entry
.
bLateInitService
=
true
;
entry
.
name
=
OUSTR
(
"/singletons/com.sun.star.util.theMacroExpander"
);
entry
.
name
=
OUSTR
(
"/singletons/com.sun.star.util.theMacroExpander"
);
entry
.
value
<<=
create_boostrap_macro_expander_factory
();
entry
.
value
<<=
cppuhelper
::
detail
::
create_bootstrap_macro_expander_factory
();
context_values
.
push_back
(
entry
);
context_values
.
push_back
(
entry
);
// tdmgr singleton
// tdmgr singleton
...
...
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