diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-04 17:16:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 08:13:23 +0200 |
commit | 95c0d568fdcd0da939c891d861bb470b28079170 (patch) | |
tree | ca4e4108178ec1176fd1a976df6f31a08d590210 /fpicker/source | |
parent | a1afcae81ca3c4b6bb240263b3259090d48c7715 (diff) |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/office/fpsmartcontent.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/win32/filepicker/workbench/Test_fps.cxx | 1 | ||||
-rw-r--r-- | fpicker/source/win32/folderpicker/workbench/Test_fops.cxx | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/fpicker/source/office/fpsmartcontent.cxx b/fpicker/source/office/fpsmartcontent.cxx index d4bcc99bf64b..961237b82c4d 100644 --- a/fpicker/source/office/fpsmartcontent.cxx +++ b/fpicker/source/office/fpsmartcontent.cxx @@ -97,7 +97,7 @@ namespace svt // Don't free the memory here! It will be done by the next // call automaticly - releasing of the uno reference ... m_pOwnInteraction = NULL; - m_xOwnInteraction = Reference< XInteractionHandler >(); + m_xOwnInteraction.clear(); Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); Reference< XInteractionHandler > xGlobalInteractionHandler( diff --git a/fpicker/source/win32/filepicker/workbench/Test_fps.cxx b/fpicker/source/win32/filepicker/workbench/Test_fps.cxx index 57608ccaf112..cfff74feff01 100644 --- a/fpicker/source/win32/filepicker/workbench/Test_fps.cxx +++ b/fpicker/source/win32/filepicker/workbench/Test_fps.cxx @@ -347,7 +347,6 @@ int SAL_CALL main(int nArgc, char* Argv[], char* Env[] ) // Dispose and clear factory xComponent->dispose(); g_xFactory.clear(); - g_xFactory = Reference< XMultiServiceFactory >(); printf("Test successful\n"); diff --git a/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx b/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx index eb63dd4b0cea..e0497d25a688 100644 --- a/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx +++ b/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx @@ -140,7 +140,6 @@ int SAL_CALL main(int /*nArgc*/, char* /*Argv[]*/, char* /*Env[]*/ ) // Dispose and clear factory xComponent->dispose(); g_xFactory.clear(); - g_xFactory = Reference< XMultiServiceFactory >(); printf("Test successful\n"); |