summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx19
1 files changed, 2 insertions, 17 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
index 3f23ff31cc1b..ee4d6d0ee2da 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
@@ -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