File indexing completed on 2024-04-28 04:36:29

0001 /*
0002     SPDX-FileCopyrightText: 2007 Alexander Dymo <adymo@kdevelop.org>
0003     SPDX-FileCopyrightText: 2007 Kris Wong <kris.p.wong@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "icore.h"
0009 
0010 namespace KDevelop {
0011 
0012 ICore *ICore::m_self = nullptr;
0013 
0014 ICore::ICore(QObject *parent)
0015     : QObject(parent)
0016 {
0017     Q_ASSERT(m_self == nullptr);
0018     m_self = this;
0019 }
0020 
0021 ICore::~ICore()
0022 {
0023     m_self = nullptr;
0024 }
0025 
0026 ICore *ICore::self()
0027 {
0028     return m_self;
0029 }
0030 
0031 }
0032 
0033 #include "moc_icore.cpp"