From 8d6a24697a7b2438190a36b2fe7d521672acd220 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 22 Jan 2014 02:51:52 +0100 Subject: [PATCH] CListModelBase prepared (forward instantiations) for CUserList --- src/blackgui/listmodelbase.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blackgui/listmodelbase.cpp b/src/blackgui/listmodelbase.cpp index 61a9a5b6f..00dc5c316 100644 --- a/src/blackgui/listmodelbase.cpp +++ b/src/blackgui/listmodelbase.cpp @@ -7,6 +7,7 @@ #include "blackmisc/avatcstationlist.h" #include "blackmisc/avaircraftlist.h" #include "blackmisc/nwserverlist.h" +#include "blackmisc/nwuserlist.h" #include "blackmisc/blackmiscfreefunctions.h" namespace BlackGui @@ -125,7 +126,7 @@ namespace BlackGui if (list.size() < 2) return list; // nothing to do int propertyIndex = this->m_columns.columnToPropertyIndex(column); Q_ASSERT(propertyIndex >= 0); - if (propertyIndex < 0) return list; + if (propertyIndex < 0) return list; // at release build do nothing // sort the values return list.sorted @@ -145,8 +146,9 @@ namespace BlackGui // see here for the reason of thess forward instantiations // http://www.parashift.com/c++-faq/separate-template-class-defn-from-decl.html template class CListModelBase; - template class CListModelBase; template class CListModelBase; + template class CListModelBase; + template class CListModelBase; } // namespace