diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/app/fileregistration.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/win/app/fileregistration.cxx b/vcl/win/app/fileregistration.cxx index 75bb0010ba21..bd31c4acd607 100644 --- a/vcl/win/app/fileregistration.cxx +++ b/vcl/win/app/fileregistration.cxx @@ -37,7 +37,7 @@ namespace vcl::fileregistration { static void LaunchModernSettingsDialogDefaultApps() { - auto pIf = sal::systools::COMReference<IApplicationActivationManager>().CoCreateInstance( + sal::systools::COMReference<IApplicationActivationManager> pIf( CLSID_ApplicationActivationManager, nullptr, CLSCTX_INPROC_SERVER); DWORD pid; @@ -121,9 +121,8 @@ void LaunchRegistrationUI() } else { - auto pIf = sal::systools::COMReference<IApplicationAssociationRegistrationUI>() - .CoCreateInstance(CLSID_ApplicationAssociationRegistrationUI, nullptr, - CLSCTX_INPROC_SERVER); + sal::systools::COMReference<IApplicationAssociationRegistrationUI> pIf( + CLSID_ApplicationAssociationRegistrationUI, nullptr, CLSCTX_INPROC_SERVER); // LaunchAdvancedAssociationUI only works for applications registered under // Software\RegisteredApplications. See scp2/source/ooo/registryitem_ooo.scp |