KItinerary

popplerglobalparams.cpp
1/*
2 SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "config-kitinerary.h"
8#include "popplerglobalparams_p.h"
9
10#include <qglobal.h>
11
12#include <GlobalParams.h>
13
14#include <memory>
15
16using namespace KItinerary;
17
18static std::unique_ptr<GlobalParams> s_globalParams;
19
20PopplerGlobalParams::PopplerGlobalParams()
21{
22 if (!s_globalParams) {
23 s_globalParams = std::make_unique<GlobalParams>();
24 }
25
26 std::swap(globalParams, m_prev);
27 std::swap(s_globalParams, globalParams);
28}
29
30PopplerGlobalParams::~PopplerGlobalParams()
31{
32 std::swap(s_globalParams, globalParams);
33 std::swap(globalParams, m_prev);
34}
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.