[Libreoffice-commits] core.git: avmedia/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 6 18:39:51 UTC 2019
avmedia/source/vlc/wrapper/SymbolLoader.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c13ea2bd388ac41784db09fc5fcb51ac81900d20
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Nov 6 17:00:42 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Nov 6 19:38:23 2019 +0100
Avoid OUString::createFromAscii, use OUStringLiteral instead
Change-Id: Ib337b9678f68d41319dda30f0ca7edba5dc7e7b0
Reviewed-on: https://gerrit.libreoffice.org/82155
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/avmedia/source/vlc/wrapper/SymbolLoader.hxx b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
index a4e941f60afe..601aa62edd2a 100644
--- a/avmedia/source/vlc/wrapper/SymbolLoader.hxx
+++ b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
@@ -32,7 +32,7 @@ typedef void (*SymbolFunc) (void);
struct ApiMap
{
- const char *symName;
+ OUStringLiteral symName;
SymbolFunc *refValue;
};
@@ -76,7 +76,7 @@ struct ApiMap
for (size_t i = 0; i < N; ++i)
{
SymbolFunc aMethod = reinterpret_cast<SymbolFunc>(osl_getFunctionSymbol
- ( aModule, OUString::createFromAscii( pMap[ i ].symName ).pData ));
+ ( aModule, OUString( pMap[ i ].symName ).pData ));
if ( !aMethod )
{
SAL_WARN("avmedia", "Cannot load method " << pMap[ i ].symName);
More information about the Libreoffice-commits
mailing list