Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btlistitem.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/noncore/net/opietooth/manager/btlistitem.cpp b/noncore/net/opietooth/manager/btlistitem.cpp index ce5b141..82e7c00 100644 --- a/noncore/net/opietooth/manager/btlistitem.cpp +++ b/noncore/net/opietooth/manager/btlistitem.cpp @@ -7,5 +7,2 @@ namespace OpieTooth { BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { - m_name = ""; - m_mac =""; - m_type =""; } @@ -13,5 +10,2 @@ namespace OpieTooth { BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { - m_name = ""; - m_mac =""; - m_type =""; } @@ -20,3 +14,3 @@ namespace OpieTooth { // name, and then mac and then servicetype - BTListItem::BTListItem( QListView * parent, QString name , QString mac, QString type ) + BTListItem::BTListItem( QListView * parent, const QString &name , const QString& mac, const QString& type ) : QListViewItem( parent, name ){ @@ -29,3 +23,3 @@ namespace OpieTooth { - BTListItem::BTListItem( QListViewItem * parent , QString name, QString mac, QString type ) + BTListItem::BTListItem( QListViewItem * parent , const QString& name, const QString& mac, const QString& type ) : QListViewItem( parent, name ){ @@ -38,3 +32,3 @@ namespace OpieTooth { - void BTListItem::setMac( QString mac ) { + void BTListItem::setMac( const QString& mac ) { m_mac = mac; @@ -42,3 +36,3 @@ namespace OpieTooth { - QString BTListItem::mac() { + QString BTListItem::mac() const { return m_mac; @@ -46,3 +40,3 @@ namespace OpieTooth { - void BTListItem::setName( QString name ) { + void BTListItem::setName( const QString& name ) { m_name = name; @@ -50,3 +44,3 @@ namespace OpieTooth { - QString BTListItem::name() { + QString BTListItem::name() const { return m_name; @@ -54,3 +48,3 @@ namespace OpieTooth { - void BTListItem::setType( QString type ) { + void BTListItem::setType( const QString& type ) { m_type = type; @@ -58,3 +52,3 @@ namespace OpieTooth { - QString BTListItem::type() { + QString BTListItem::type() const { return m_type; |