summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-06 09:23:33 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-09 08:34:40 +0000
commit6c80a8fe89fadf9a2c7260a09c037a09462f53d1 (patch)
treed36da9ee2a5fdc579d2a57ff6ba02deaddfa785a /javaunohelper
parente1fc599eb764186e5d511ace9785463eebbc7028 (diff)
new loplugin: oncevar
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/source/javaunohelper.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/javaunohelper/source/javaunohelper.cxx b/javaunohelper/source/javaunohelper.cxx
index 86e0cd0ea496..4fd51a28e17e 100644
--- a/javaunohelper/source/javaunohelper.cxx
+++ b/javaunohelper/source/javaunohelper.cxx
@@ -72,8 +72,7 @@ jboolean Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo(
lib.release();
// ========================= LATEST VERSION =========================
- OUString aGetEnvName( COMPONENT_GETENV );
- oslGenericFunction pSym = lib.getFunctionSymbol(aGetEnvName);
+ oslGenericFunction pSym = lib.getFunctionSymbol(COMPONENT_GETENV);
if (pSym)
{
Environment java_env, loader_env;
@@ -94,8 +93,7 @@ jboolean Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo(
uno_getEnvironment(
reinterpret_cast<uno_Environment **>(&java_env), java_env_name.pData, vm_access.get() );
- OUString aWriteInfoName( COMPONENT_WRITEINFO );
- pSym = lib.getFunctionSymbol(aWriteInfoName);
+ pSym = lib.getFunctionSymbol(COMPONENT_WRITEINFO);
if (pSym)
{
if (loader_env.is() && java_env.is())
@@ -164,8 +162,7 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
lib.release();
// ========================= LATEST VERSION =========================
- OUString aGetEnvName( COMPONENT_GETENV );
- oslGenericFunction pSym = lib.getFunctionSymbol(aGetEnvName);
+ oslGenericFunction pSym = lib.getFunctionSymbol(COMPONENT_GETENV);
if (pSym)
{
Environment java_env, loader_env;
@@ -187,8 +184,7 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
uno_getEnvironment(
reinterpret_cast<uno_Environment **>(&java_env), java_env_name.pData, vm_access.get() );
- OUString aGetFactoryName( COMPONENT_GETFACTORY );
- pSym = lib.getFunctionSymbol(aGetFactoryName);
+ pSym = lib.getFunctionSymbol(COMPONENT_GETFACTORY);
if (pSym)
{
if (loader_env.is() && java_env.is())