salplug.cxx (cdf0e10c) salplug.cxx (1385a70c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 53 unchanged lines hidden (view full) ---

62static SalInstance* tryInstance( const OUString& rModuleBase )
63{
64 SalInstance* pInst = NULL;
65
66 OUStringBuffer aModName( 128 );
67 aModName.appendAscii( SAL_DLLPREFIX"vclplug_" );
68 aModName.append( rModuleBase );
69 aModName.appendAscii( SAL_DLLPOSTFIX );
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 53 unchanged lines hidden (view full) ---

62static SalInstance* tryInstance( const OUString& rModuleBase )
63{
64 SalInstance* pInst = NULL;
65
66 OUStringBuffer aModName( 128 );
67 aModName.appendAscii( SAL_DLLPREFIX"vclplug_" );
68 aModName.append( rModuleBase );
69 aModName.appendAscii( SAL_DLLPOSTFIX );
70 aModName.appendAscii( SAL_DLLEXTENSION );
70 OUString aModule = aModName.makeStringAndClear();
71
72 oslModule aMod = osl_loadModuleRelative(
73 reinterpret_cast< oslGenericFunction >( &tryInstance ), aModule.pData,
74 SAL_LOADMODULE_DEFAULT );
75 if( aMod )
76 {
77 salFactoryProc aProc = (salFactoryProc)osl_getAsciiFunctionSymbol( aMod, "create_SalInstance" );

--- 224 unchanged lines hidden ---
71 OUString aModule = aModName.makeStringAndClear();
72
73 oslModule aMod = osl_loadModuleRelative(
74 reinterpret_cast< oslGenericFunction >( &tryInstance ), aModule.pData,
75 SAL_LOADMODULE_DEFAULT );
76 if( aMod )
77 {
78 salFactoryProc aProc = (salFactoryProc)osl_getAsciiFunctionSymbol( aMod, "create_SalInstance" );

--- 224 unchanged lines hidden ---