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
42a05b4b
Kaydet (Commit)
42a05b4b
authored
Eki 21, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unnecessary jfw_plugin::getVendorNames
Change-Id: I3c134c27db4c1496fcacc519da68af10ab3ce574
üst
a8c24b25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
20 deletions
+2
-20
vendorlist.cxx
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
+2
-17
vendorlist.hxx
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx
+0
-3
No files found.
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
Dosyayı görüntüle @
42a05b4b
...
...
@@ -53,27 +53,12 @@ BEGIN_VENDOR_MAP()
END_VENDOR_MAP
()
Sequence
<
OUString
>
getVendorNames
(
)
bool
isVendorSupported
(
const
OUString
&
sVendor
)
{
const
size_t
count
=
sizeof
(
gVendorMap
)
/
sizeof
(
VendorSupportMapEntry
)
-
1
;
OUString
arNames
[
count
];
for
(
size_t
pos
=
0
;
pos
<
count
;
++
pos
)
{
OString
sVendor
(
gVendorMap
[
pos
].
sVendorName
);
arNames
[
pos
]
=
OStringToOUString
(
sVendor
,
RTL_TEXTENCODING_UTF8
);
}
return
Sequence
<
OUString
>
(
arNames
,
count
);
}
bool
isVendorSupported
(
const
OUString
&
sVendor
)
{
Sequence
<
OUString
>
seqNames
=
getVendorNames
();
const
OUString
*
arNames
=
seqNames
.
getConstArray
();
sal_Int32
count
=
seqNames
.
getLength
();
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
if
(
sVendor
.
equals
(
arNames
[
i
]))
if
(
sVendor
.
equalsAscii
(
gVendorMap
[
pos
].
sVendorName
))
return
true
;
}
#if OSL_DEBUG_LEVEL >= 2
...
...
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx
Dosyayı görüntüle @
42a05b4b
...
...
@@ -45,9 +45,6 @@ VendorSupportMapEntry gVendorMap[] ={
#define END_VENDOR_MAP() \
{NULL, NULL, NULL} };
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
getVendorNames
();
/* Examines if the vendor supplied in parameter sVendor is part of the
list of supported vendors. That is the arry of VendorSupportMapEntry
is search for an respective entry.
...
...
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