nss: upgrade to release 3.73
[LibreOffice.git] / sfx2 / source / control / asyncfunc.cxx
blobb81639af5646341c30d4fd9d7b995a2f51c7c73a
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 <asyncfunc.hxx>
12 AsyncFunc::AsyncFunc(const std::function<void()>& rAsyncFunc)
13 : m_pAsyncFunc(rAsyncFunc)
17 AsyncFunc::~AsyncFunc() {}
19 void AsyncFunc::Execute()
21 if (m_pAsyncFunc)
22 m_pAsyncFunc();
25 //XUnoTunnel
26 UNO3_GETIMPLEMENTATION_IMPL(AsyncFunc)
28 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */