mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #624 Replace typedef with using.
This commit is contained in:
@@ -89,10 +89,10 @@ namespace XBus
|
||||
DataRef() : DataRefImpl(DataRefTraits::name()) {}
|
||||
|
||||
//! Traits type
|
||||
typedef DataRefTraits TraitsType;
|
||||
using TraitsType = DataRefTraits;
|
||||
|
||||
//! Dataref type
|
||||
typedef typename DataRefTraits::type DataRefType;
|
||||
using DataRefType = typename DataRefTraits::type;
|
||||
|
||||
//! Set the value of the dataref (if it is writable)
|
||||
void set(DataRefType d) { DataRefImpl::implSet(d); }
|
||||
@@ -114,10 +114,10 @@ namespace XBus
|
||||
ArrayDataRef() : ArrayDataRefImpl(DataRefTraits::name(), DataRefTraits::size) {}
|
||||
|
||||
//! Traits type
|
||||
typedef DataRefTraits TraitsType;
|
||||
using TraitsType = DataRefTraits;
|
||||
|
||||
//! Dataref type
|
||||
typedef typename DataRefTraits::type DataRefType;
|
||||
using DataRefType = typename DataRefTraits::type;
|
||||
|
||||
//! Set the value of the whole array (if it is writable)
|
||||
void setAll(std::vector<DataRefType> const& a) { ArrayDataRefImpl::implSetAll(a); }
|
||||
|
||||
@@ -31,7 +31,7 @@ class QTimer;
|
||||
//! \endcond
|
||||
|
||||
//! Typedef needed to use QList<double> as a DBus argument
|
||||
typedef QList<double> QDoubleList;
|
||||
using QDoubleList = QList<double>;
|
||||
|
||||
//! Typedef needed to use QList<double> as a DBus argument
|
||||
Q_DECLARE_METATYPE(QDoubleList)
|
||||
|
||||
Reference in New Issue
Block a user