in SbUnoObject constructor, only query for XTypeProvider
if we're going to use the result Change-Id: I49ad11e287f58c1021e509f56d934aa3ce745b0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134201 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -2311,12 +2311,9 @@ SbUnoObject::SbUnoObject( const OUString& aName_, const Any& aUnoObj_ )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XTypeProvider > xTypeProvider;
|
|
||||||
// Did the object have an invocation itself?
|
// Did the object have an invocation itself?
|
||||||
mxInvocation.set( x, UNO_QUERY );
|
mxInvocation.set( x, UNO_QUERY );
|
||||||
|
|
||||||
xTypeProvider.set( x, UNO_QUERY );
|
|
||||||
|
|
||||||
if( mxInvocation.is() )
|
if( mxInvocation.is() )
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2324,6 +2321,7 @@ SbUnoObject::SbUnoObject( const OUString& aName_, const Any& aUnoObj_ )
|
|||||||
mxExactNameInvocation.set( mxInvocation, UNO_QUERY );
|
mxExactNameInvocation.set( mxInvocation, UNO_QUERY );
|
||||||
|
|
||||||
// The remainder refers only to the introspection
|
// The remainder refers only to the introspection
|
||||||
|
Reference< XTypeProvider > xTypeProvider( x, UNO_QUERY );
|
||||||
if( !xTypeProvider.is() )
|
if( !xTypeProvider.is() )
|
||||||
{
|
{
|
||||||
bNeedIntrospection = false;
|
bNeedIntrospection = false;
|
||||||
|
Reference in New Issue
Block a user