summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 12:55:32 +0200
committerNoel Grandin <noel@peralex.com>2015-11-05 13:32:16 +0200
commit281296330735158d6265e0b146b5d5301f6e610e (patch)
treeee8235f54b59dbec8d13f12b0bafa62e61ab9ad1 /vcl/workben
parent75da22e3ce80f8dcdeef0488b22c4dc522c2ec29 (diff)
use uno::Reference::set method instead of assignment
Change-Id: I31a69a997098eb1807361b8049c3312a4f287d75
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/mtfdemo.cxx3
-rw-r--r--vcl/workben/vcldemo.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index 404552750c35..3488a1e32b10 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -130,8 +130,7 @@ protected:
uno::Reference<uno::XComponentContext> xComponentContext
= ::cppu::defaultBootstrap_InitialComponentContext();
- xMSF = uno::Reference<lang::XMultiServiceFactory>
- (xComponentContext->getServiceManager(), uno::UNO_QUERY);
+ xMSF.set(xComponentContext->getServiceManager(), uno::UNO_QUERY);
if(!xMSF.is())
Application::Abort("Bootstrap failure - no service manager");
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 1e7c5cca0b91..0e98530e8d77 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -1864,8 +1864,7 @@ protected:
{
uno::Reference<uno::XComponentContext> xComponentContext
= ::cppu::defaultBootstrap_InitialComponentContext();
- xMSF = uno::Reference<lang::XMultiServiceFactory>
- (xComponentContext->getServiceManager(), uno::UNO_QUERY);
+ xMSF.set(xComponentContext->getServiceManager(), uno::UNO_QUERY);
if(!xMSF.is())
Application::Abort("Bootstrap failure - no service manager");