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
26c20675
Kaydet (Commit)
26c20675
authored
Eki 25, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
micro optimizations
üst
f379da21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
regcomplazy.cxx
cpputools/source/regcomplazy/regcomplazy.cxx
+5
-6
registercomponent.cxx
cpputools/source/registercomponent/registercomponent.cxx
+6
-6
unoexe.cxx
cpputools/source/unoexe/unoexe.cxx
+3
-3
No files found.
cpputools/source/regcomplazy/regcomplazy.cxx
Dosyayı görüntüle @
26c20675
...
...
@@ -40,7 +40,6 @@
#include <registry/registry.hxx>
#define OUSTR(x) ::rtl::OUString::createFromAscii( x )
#define OSToOUS(x) ::rtl::OStringToOUString(x, osl_getThreadTextEncoding())
#define OUSToOS(x) ::rtl::OUStringToOString(x, osl_getThreadTextEncoding())
using
namespace
::
rtl
;
...
...
@@ -95,7 +94,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
++
nPos
;
}
OUString
sys_path
(
OUSTR
(
argv
[
nPos
]
)
);
OUString
sys_path
(
::
rtl
::
OUString
::
createFromAscii
(
argv
[
nPos
]
)
);
OUString
reg_url
;
oslFileError
rc
=
osl_getFileURLFromSystemPath
(
sys_path
.
pData
,
&
reg_url
.
pData
);
if
(
osl_File_E_None
!=
rc
)
...
...
@@ -207,21 +206,21 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
}
OString
sLoaderName
=
(
*
comp_iter
).
sLoaderName
;
OUString
usKeyName
(
OUSTR
(
"UNO/ACTIVATOR"
));
OUString
usKeyName
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"UNO/ACTIVATOR"
)
));
key
.
createKey
(
usKeyName
,
subKey
);
subKey
.
setValue
(
OUString
(),
RG_VALUETYPE_STRING
,
(
sal_Char
*
)
sLoaderName
.
getStr
(),
sLoaderName
.
getLength
()
+
1
);
OString
sCompName
=
(
*
comp_iter
).
sComponentName
;
usKeyName
=
OUSTR
(
"UNO/LOCATION"
);
usKeyName
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"UNO/LOCATION"
)
);
key
.
createKey
(
usKeyName
,
subKey
);
subKey
.
setValue
(
OUString
(),
RG_VALUETYPE_STRING
,
(
sal_Char
*
)
sCompName
.
getStr
(),
sCompName
.
getLength
()
+
1
);
usKeyName
=
OUSTR
(
"UNO/SERVICES"
);
usKeyName
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"UNO/SERVICES"
)
);
key
.
createKey
(
usKeyName
,
subKey
);
rootKey
.
createKey
(
OUSTR
(
"/SERVICES"
),
serviceKey
);
rootKey
.
createKey
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/SERVICES"
)
),
serviceKey
);
OSVector
::
const_iterator
serv_iter
=
((
*
comp_iter
).
vSupportedServices
).
begin
();
OUString
usServiceKeyName
;
...
...
cpputools/source/registercomponent/registercomponent.cxx
Dosyayı görüntüle @
26c20675
...
...
@@ -83,7 +83,7 @@ OUString replacePrefix(OUString const & url, OUString const & prefix) {
sal_Bool
isFileUrl
(
const
OUString
&
fileName
)
{
if
(
fileName
.
indexOf
(
OUString
::
createFromAscii
(
"file://"
))
==
0
)
if
(
fileName
.
indexOf
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"file://"
)
))
==
0
)
return
sal_True
;
return
sal_False
;
}
...
...
@@ -694,7 +694,7 @@ static void bootstrap(
}
reg
=
Reference
<
XSimpleRegistry
>
(
xSMgr
->
createInstance
(
rtl
::
OUString
::
createFromAscii
(
"com.sun.star.registry.SimpleRegistry"
)),
UNO_QUERY
);
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.registry.SimpleRegistry"
)
)),
UNO_QUERY
);
if
(
reg
.
is
())
{
...
...
@@ -727,15 +727,15 @@ static void bootstrap(
// we know our java loader, so we check, whether a java-loader is
// registered
Reference
<
XInterface
>
r
=
loadSharedLibComponentFactory
(
OUString
::
createFromAscii
(
"javavm.uno"
SAL_DLLEXTENSION
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"javavm.uno"
SAL_DLLEXTENSION
)
),
OUString
(),
OUString
::
createFromAscii
(
"com.sun.star.comp.stoc.JavaVirtualMachine"
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.comp.stoc.JavaVirtualMachine"
)
),
xSMgr
,
Reference
<
XRegistryKey
>
()
);
Reference
<
XInterface
>
r2
=
loadSharedLibComponentFactory
(
OUString
::
createFromAscii
(
"javaloader.uno"
SAL_DLLEXTENSION
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"javaloader.uno"
SAL_DLLEXTENSION
)
),
OUString
(),
OUString
::
createFromAscii
((
"com.sun.star.comp.stoc.JavaComponentLoader"
)
),
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.comp.stoc.JavaComponentLoader"
)
),
xSMgr
,
Reference
<
XRegistryKey
>
()
);
Reference
<
XSet
>
xSet
(
xSMgr
,
UNO_QUERY
);
...
...
cpputools/source/unoexe/unoexe.cxx
Dosyayı görüntüle @
26c20675
...
...
@@ -90,7 +90,7 @@ namespace unoexe
static
sal_Bool
isFileUrl
(
const
OUString
&
fileName
)
{
if
(
fileName
.
indexOf
(
OUString
::
createFromAscii
(
"file://"
))
==
0
)
if
(
fileName
.
indexOf
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"file://"
)
))
==
0
)
return
sal_True
;
return
sal_False
;
}
...
...
@@ -159,7 +159,7 @@ static sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
sal_Int32
*
pnIndex
,
const
OUString
&
aArg
)
throw
(
RuntimeException
)
{
const
OUString
dash
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"-"
));
const
OUString
dash
(
RTL_CONSTASCII_USTRINGPARAM
(
"-"
));
if
(
aArg
.
indexOf
(
dash
)
!=
0
)
return
sal_False
;
...
...
@@ -650,7 +650,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,)
rtl_getAppCommandArg
(
nPos
,
&
arg
.
pData
);
const
OUString
dashdash
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"--"
));
const
OUString
dashdash
(
RTL_CONSTASCII_USTRINGPARAM
(
"--"
));
if
(
dashdash
==
arg
)
{
++
nPos
;
...
...
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