nss: upgrade to release 3.73
[LibreOffice.git] / vcl / headless / svpdata.cxx
blob4ac909c67c1f23e2ca8dd6938dee1e5dc325455f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <unx/gendata.hxx>
11 #include <headless/svpinst.hxx>
13 namespace {
15 class SvpSalData : public GenericUnixSalData
17 public:
18 explicit SvpSalData( SalInstance *pInstance ) : GenericUnixSalData( SAL_DATA_SVP, pInstance ) {}
19 virtual void ErrorTrapPush() override {}
20 virtual bool ErrorTrapPop( bool /*bIgnoreError*/ = true ) override { return false; }
25 // plugin factory function
26 SalInstance* svp_create_SalInstance()
28 SvpSalInstance* pInstance = new SvpSalInstance( std::make_unique<SvpSalYieldMutex>() );
29 new SvpSalData( pInstance );
30 return pInstance;
33 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */