Split viewbase.cpp

viewbase.cpp instantiates many template classes and ended up as a huge object file. Building with MinGW in not-optimized debug build, the file got too big. Therefore split the template instantiations into individual files.
This commit is contained in:
Roland Rossgotterer
2018-11-22 11:13:19 +01:00
committed by Klaus Basan
parent ec8245ea53
commit a005ebbbc9
7 changed files with 1002 additions and 917 deletions

View File

@@ -0,0 +1,22 @@
/* Copyright (C) 2018
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
#include "viewbase.cpp"
namespace BlackGui
{
namespace Views
{
template class CViewBase<BlackGui::Models::CApplicationInfoListModel, BlackMisc::CApplicationInfoList, BlackMisc::CApplicationInfo>;
template class CViewBase<BlackGui::Models::CCountryListModel, BlackMisc::CCountryList, BlackMisc::CCountry>;
template class CViewBase<BlackGui::Models::CStatusMessageListModel, BlackMisc::CStatusMessageList, BlackMisc::CStatusMessage>;
template class CViewBase<BlackGui::Models::CIdentifierListModel, BlackMisc::CIdentifierList, BlackMisc::CIdentifier>;
template class CViewBase<BlackGui::Models::CNameVariantPairModel, BlackMisc::CNameVariantPairList, BlackMisc::CNameVariantPair>;
} // namespace
} // namespace