summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-09-06 21:55:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-09-07 10:22:49 +0200
commitaebfaf13f20e6a106a024b38a671474debd5346a (patch)
tree38766a8230d34ad2a49e3e3732c2ce865b554ecb /avmedia
parentc48b021357f4e657291d12fbaa5a2d1a6471ce9b (diff)
Use plain char osl_getAsciiFunctionSymbol
Change-Id: I932675efaeb1072602775115fc368bbba7bfd2b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102134 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/vlc/wrapper/SymbolLoader.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/avmedia/source/vlc/wrapper/SymbolLoader.hxx b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
index 5bbdf18580a8..3c67b82f15c3 100644
--- a/avmedia/source/vlc/wrapper/SymbolLoader.hxx
+++ b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
@@ -19,7 +19,7 @@
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
-#define SYM_MAP(a) { u ## #a, reinterpret_cast<SymbolFunc *>(&a) }
+#define SYM_MAP(a) { #a, reinterpret_cast<SymbolFunc *>(&a) }
namespace avmedia::vlc::wrapper
{
@@ -27,7 +27,7 @@ typedef void (*SymbolFunc) (void);
struct ApiMap
{
- OUStringLiteral symName;
+ char const * symName;
SymbolFunc *refValue;
};
@@ -70,8 +70,8 @@ struct ApiMap
{
for (size_t i = 0; i < N; ++i)
{
- SymbolFunc aMethod = reinterpret_cast<SymbolFunc>(osl_getFunctionSymbol
- ( aModule, OUString( pMap[ i ].symName ).pData ));
+ SymbolFunc aMethod = reinterpret_cast<SymbolFunc>(osl_getAsciiFunctionSymbol
+ ( aModule, pMap[ i ].symName ));
if ( !aMethod )
{
SAL_WARN("avmedia", "Cannot load method " << pMap[ i ].symName);