summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-09-22 17:23:44 +0200
committerMichael Stahl <mstahl@redhat.com>2017-09-22 18:01:09 +0200
commitd67ec7324bcad0ba945f200a790ded3df98009ab (patch)
treeed52c20cb827e47d641673cdcc0127f7f913c5b5
parentba4151219a5c010e840396e30bc408383e474327 (diff)
vcl: [loplugin:badstatics] aApplication
VisualBackendTestApp::xMSF doesn't need to be a member. Change-Id: I307ba56377b822a148db809c16b8ff05708d0ca7
-rw-r--r--vcl/backendtest/VisualBackendTest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx
index 0c0584cad792..fb75618c5a88 100644
--- a/vcl/backendtest/VisualBackendTest.cxx
+++ b/vcl/backendtest/VisualBackendTest.cxx
@@ -538,13 +538,13 @@ public:
}
protected:
- uno::Reference<lang::XMultiServiceFactory> xMSF;
-
void Init() override
{
try
{
uno::Reference<uno::XComponentContext> xComponentContext = ::cppu::defaultBootstrap_InitialComponentContext();
+ uno::Reference<lang::XMultiServiceFactory> xMSF;
+
xMSF = uno::Reference<lang::XMultiServiceFactory>(xComponentContext->getServiceManager(), uno::UNO_QUERY);
if (!xMSF.is())