WaE: unused arguments
This commit is contained in:
@@ -82,7 +82,8 @@ int main (int argc, char **argv)
|
|||||||
OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.registry.ImplementationRegistration")) );
|
OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.registry.ImplementationRegistration")) );
|
||||||
xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY );
|
xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY );
|
||||||
}
|
}
|
||||||
catch( Exception & ) {
|
catch (const Exception&)
|
||||||
|
{
|
||||||
printf( "Couldn't create ImplementationRegistration service\n" );
|
printf( "Couldn't create ImplementationRegistration service\n" );
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@@ -107,7 +108,8 @@ int main (int argc, char **argv)
|
|||||||
xSimpleReg );
|
xSimpleReg );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch( Exception &e ) {
|
catch (const Exception &e)
|
||||||
|
{
|
||||||
printf( "Couldn't reach dll %s\n" , szBuf );
|
printf( "Couldn't reach dll %s\n" , szBuf );
|
||||||
printf( "%s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() );
|
printf( "%s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() );
|
||||||
|
|
||||||
@@ -134,7 +136,7 @@ int main (int argc, char **argv)
|
|||||||
aDllName,
|
aDllName,
|
||||||
xSimpleReg );
|
xSimpleReg );
|
||||||
}
|
}
|
||||||
catch( Exception & e )
|
catch (const Exception&)
|
||||||
{
|
{
|
||||||
printf( "Couldn't reach dll %s\n" , szBuf );
|
printf( "Couldn't reach dll %s\n" , szBuf );
|
||||||
exit(1);
|
exit(1);
|
||||||
@@ -178,7 +180,8 @@ int main (int argc, char **argv)
|
|||||||
nNewHandle = xTest->test(
|
nNewHandle = xTest->test(
|
||||||
OStringToOUString( argv[1] , RTL_TEXTENCODING_ASCII_US ) , x , nHandle );
|
OStringToOUString( argv[1] , RTL_TEXTENCODING_ASCII_US ) , x , nHandle );
|
||||||
}
|
}
|
||||||
catch( Exception & e ) {
|
catch (const Exception &e)
|
||||||
|
{
|
||||||
OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
|
OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
|
||||||
printf( "testcomponent : uncaught exception %s\n" , o.getStr() );
|
printf( "testcomponent : uncaught exception %s\n" , o.getStr() );
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Reference in New Issue
Block a user