diff options
author | Noel Grandin <noel@peralex.com> | 2012-10-25 17:31:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-30 10:43:37 +0100 |
commit | e6abcd4fe7eb7cc12df372a298d06b57f822251f (patch) | |
tree | f1afd8fdeecfa52f3c5f276abc5b0e0d99145c58 /ucb/source/ucp/webdav-neon | |
parent | 685852d89235c58df32c4cae4069cbaa24caf62f (diff) |
fdo#46808, use service constructor for security::CertificateContainer
Change-Id: Ia8bcd2efd8137922024fb2ed2f2e4197f4ee25e1
Diffstat (limited to 'ucb/source/ucp/webdav-neon')
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index b3a737fb5fa6..d05973fc53f7 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -49,6 +49,7 @@ extern "C" { #include "libxml/parser.h" #include "rtl/ustrbuf.hxx" +#include "comphelper/processfactory.hxx" #include "comphelper/sequence.hxx" #include <comphelper/stl_types.hxx> #include "ucbhelper/simplecertificatevalidationrequest.hxx" @@ -406,11 +407,7 @@ extern "C" int NeonSession_CertificationNotify( void *userdata, uno::Reference< security::XCertificateContainer > xCertificateContainer; try { - xCertificateContainer - = uno::Reference< security::XCertificateContainer >( - pSession->getMSF()->createInstance( - rtl::OUString( "com.sun.star.security.CertificateContainer" ) ), - uno::UNO_QUERY ); + xCertificateContainer = security::CertificateContainer::create( comphelper::getComponentContext( pSession->getMSF() ) ); } catch ( uno::Exception const & ) { |