refs #624 Replace typedef with using.

This commit is contained in:
Mathew Sutcliffe
2016-03-20 21:52:49 +00:00
parent a8fc899219
commit 6f1cf8e3d7
22 changed files with 47 additions and 47 deletions

View File

@@ -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); }

View File

@@ -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)