diff options
Diffstat (limited to 'cppuhelper/test/cfg_test.cxx')
-rw-r--r-- | cppuhelper/test/cfg_test.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cppuhelper/test/cfg_test.cxx b/cppuhelper/test/cfg_test.cxx index c43156e0a..3779fb72d 100644 --- a/cppuhelper/test/cfg_test.cxx +++ b/cppuhelper/test/cfg_test.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -226,7 +227,7 @@ static struct ImplementationEntry g_entries[] = extern "C" { //================================================================================================== -void SAL_CALL component_getImplementationEnvironment( +SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) { *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; @@ -239,7 +240,7 @@ sal_Bool SAL_CALL component_writeInfo( pServiceManager, pRegistryKey, g_entries ); } //================================================================================================== -void * SAL_CALL component_getFactory( +SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) { return component_getFactoryHelper( @@ -262,7 +263,7 @@ SAL_IMPLEMENT_MAIN() // show what is in context xContext->getValueByName( OUSTR("dump_maps") ); - sal_Int32 n; + sal_Int32 n(0); OSL_VERIFY( xContext->getValueByName( OUSTR("/global-context-properties/TestValue") ) >>= n ); ::fprintf( stderr, "> n=%d\n", n ); @@ -271,8 +272,8 @@ SAL_IMPLEMENT_MAIN() OSL_VERIFY( xContext->getValueByName( OUSTR("/singletons/com.sun.star.script.theConverter") ) >>= x ); OSL_VERIFY( xContext->getValueByName( OUSTR("/singletons/com.sun.star.bootstrap.theTestComponent0") ) >>= x ); - ::fprintf( stderr, "> registering service...\n", n ); -#if defined(SAL_W32) || defined(SAL_OS2) + ::fprintf( stderr, "> registering service...\n"); +#if defined(SAL_W32) OUString libName( OUSTR("cfg_test.dll") ); #elif defined(SAL_UNX) OUString libName( OUSTR("libcfg_test.so") ); @@ -301,3 +302,5 @@ SAL_IMPLEMENT_MAIN() return 1; } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |