mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
CListModelBase and CViewBase: reduce the number of template parameters
by relying on what can easily be deduced from the first parameter(s).
This commit is contained in:
@@ -29,10 +29,19 @@ namespace BlackGui
|
||||
namespace Views
|
||||
{
|
||||
//! Base class for views with DB objects
|
||||
template <class ModelClass, class ContainerType, class ObjectType> class CViewWithCallsignObjects :
|
||||
public CViewBase<ModelClass, ContainerType, ObjectType>
|
||||
template <class T> class CViewWithCallsignObjects :
|
||||
public CViewBase<T>
|
||||
{
|
||||
public:
|
||||
//! Model type
|
||||
using ModelClass = T;
|
||||
|
||||
//! Model container type
|
||||
using ContainerType = typename T::ContainerType;
|
||||
|
||||
//! Model container element type
|
||||
using ObjectType = typename T::ObjectType;
|
||||
|
||||
//! Select callsign
|
||||
void selectCallsign(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user