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
d6f18bf9
Kaydet (Commit)
d6f18bf9
authored
Tem 11, 2011
tarafından
Matúš Kukan
Kaydeden (comit)
Michael Meeks
Tem 11, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Default to current language binding name, if not specified.
Signed-off-by:
Michael Meeks
<
michael.meeks@novell.com
>
üst
dc1e0758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
shlib.cxx
cppuhelper/source/shlib.cxx
+6
-16
No files found.
cppuhelper/source/shlib.cxx
Dosyayı görüntüle @
d6f18bf9
...
@@ -270,16 +270,13 @@ static OUString makeComponentPath(
...
@@ -270,16 +270,13 @@ static OUString makeComponentPath(
}
}
//==============================================================================
//==============================================================================
static
OUString
getLibEnv
(
OUString
const
&
aModulePath
,
static
OUString
getLibEnv
(
oslModule
lib
,
oslModule
lib
,
uno
::
Environment
*
pEnv
,
uno
::
Environment
*
pEnv
,
OUString
*
pSourceEnv_name
,
OUString
*
pSourceEnv_name
,
uno
::
Environment
const
&
cTargetEnv
,
uno
::
Environment
const
&
cTargetEnv
,
OUString
const
&
cImplName
=
OUString
(),
OUString
const
&
cImplName
=
OUString
(),
OUString
const
&
rPrefix
=
OUString
())
OUString
const
&
rPrefix
=
OUString
())
{
{
OUString
aExcMsg
;
sal_Char
const
*
pEnvTypeName
=
NULL
;
sal_Char
const
*
pEnvTypeName
=
NULL
;
OUString
aGetEnvNameExt
=
rPrefix
+
OUSTR
(
COMPONENT_GETENVEXT
);
OUString
aGetEnvNameExt
=
rPrefix
+
OUSTR
(
COMPONENT_GETENVEXT
);
...
@@ -300,13 +297,8 @@ static OUString getLibEnv(OUString const & aModulePath,
...
@@ -300,13 +297,8 @@ static OUString getLibEnv(OUString const & aModulePath,
if
(
pGetImplEnv
)
if
(
pGetImplEnv
)
pGetImplEnv
(
&
pEnvTypeName
,
(
uno_Environment
**
)
pEnv
);
pGetImplEnv
(
&
pEnvTypeName
,
(
uno_Environment
**
)
pEnv
);
else
else
// this symbol used to be mandatory, but is no longer
{
pEnvTypeName
=
CPPU_CURRENT_LANGUAGE_BINDING_NAME
;
aExcMsg
=
aModulePath
;
aExcMsg
+=
OUSTR
(
": cannot get symbol: "
);
aExcMsg
+=
aGetEnvName
;
aExcMsg
+=
OUSTR
(
"- nor: "
);
}
}
}
if
(
!
pEnv
->
is
()
&&
pEnvTypeName
)
if
(
!
pEnv
->
is
()
&&
pEnvTypeName
)
...
@@ -328,10 +320,8 @@ static OUString getLibEnv(OUString const & aModulePath,
...
@@ -328,10 +320,8 @@ static OUString getLibEnv(OUString const & aModulePath,
}
}
}
while
(
nIndex
!=
-
1
);
}
while
(
nIndex
!=
-
1
);
}
}
}
}
return
OUString
();
return
aExcMsg
;
}
}
extern
"C"
{
static
void
s_getFactory
(
va_list
*
pParam
)
extern
"C"
{
static
void
s_getFactory
(
va_list
*
pParam
)
...
@@ -389,7 +379,7 @@ Reference< XInterface > SAL_CALL loadSharedLibComponentFactory(
...
@@ -389,7 +379,7 @@ Reference< XInterface > SAL_CALL loadSharedLibComponentFactory(
OUString
aEnvTypeName
;
OUString
aEnvTypeName
;
OUString
aExcMsg
=
getLibEnv
(
aModulePath
,
lib
,
&
env
,
&
aEnvTypeName
,
currentEnv
,
rImplName
,
rPrefix
);
OUString
aExcMsg
=
getLibEnv
(
lib
,
&
env
,
&
aEnvTypeName
,
currentEnv
,
rImplName
,
rPrefix
);
if
(
!
aExcMsg
.
getLength
())
if
(
!
aExcMsg
.
getLength
())
{
{
OUString
aGetFactoryName
=
rPrefix
+
OUSTR
(
COMPONENT_GETFACTORY
);
OUString
aGetFactoryName
=
rPrefix
+
OUSTR
(
COMPONENT_GETFACTORY
);
...
@@ -535,7 +525,7 @@ void SAL_CALL writeSharedLibComponentInfo(
...
@@ -535,7 +525,7 @@ void SAL_CALL writeSharedLibComponentInfo(
uno
::
Environment
env
;
uno
::
Environment
env
;
OUString
aEnvTypeName
;
OUString
aEnvTypeName
;
OUString
aExcMsg
=
getLibEnv
(
aModulePath
,
lib
,
&
env
,
&
aEnvTypeName
,
currentEnv
);
OUString
aExcMsg
=
getLibEnv
(
lib
,
&
env
,
&
aEnvTypeName
,
currentEnv
);
if
(
!
aExcMsg
.
getLength
())
if
(
!
aExcMsg
.
getLength
())
{
{
OUString
aWriteInfoName
=
OUSTR
(
COMPONENT_WRITEINFO
);
OUString
aWriteInfoName
=
OUSTR
(
COMPONENT_WRITEINFO
);
...
...
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