1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3#include "docprivate.h"
4
5#include "text.h"
6
7#include <QtCore/qhash.h>
8
9QT_BEGIN_NAMESPACE
10
11/*!
12 Deletes the DocPrivateExtra.
13 */
14DocPrivate::~DocPrivate()
15{
16 delete extra;
17}
18
19void DocPrivate::addAlso(const Text &also)
20{
21 m_alsoList.append(t: also);
22}
23
24void DocPrivate::constructExtra()
25{
26 if (extra == nullptr)
27 extra = new DocPrivateExtra;
28}
29
30QT_END_NAMESPACE
31

source code of qttools/src/qdoc/qdoc/docprivate.cpp