Improved loplugin:stringconstant (now that GCC 7 supports it): pyuno

Change-Id: Ia6778188fbc6f5f4acd696f35ef6d86127b9b8e4
Reviewed-on: https://gerrit.libreoffice.org/76659
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2019-07-30 17:52:40 +02:00
parent 315298ceff
commit 8a45f6fc04
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ static PyRef getObjectFromLoaderModule( const char * func )
static OUString getImplementationName() static OUString getImplementationName()
{ {
return OUString( "org.openoffice.comp.pyuno.Loader" ); return "org.openoffice.comp.pyuno.Loader";
} }
static Sequence< OUString > getSupportedServiceNames() static Sequence< OUString > getSupportedServiceNames()

View File

@@ -89,7 +89,7 @@ OUString val2str( const void * pVal, typelib_TypeDescriptionReference * pTypeRef
{ {
assert( pVal ); assert( pVal );
if (pTypeRef->eTypeClass == typelib_TypeClass_VOID) if (pTypeRef->eTypeClass == typelib_TypeClass_VOID)
return OUString("void"); return "void";
OUStringBuffer buf( 64 ); OUStringBuffer buf( 64 );
buf.append( '(' ); buf.append( '(' );