summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btlistitem.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btlistitem.cpp22
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 {
7 BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { 7 BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) {
8 m_name = "";
9 m_mac ="";
10 m_type ="";
11 } 8 }
@@ -13,5 +10,2 @@ namespace OpieTooth {
13 BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { 10 BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) {
14 m_name = "";
15 m_mac ="";
16 m_type ="";
17 } 11 }
@@ -20,3 +14,3 @@ namespace OpieTooth {
20 // name, and then mac and then servicetype 14 // name, and then mac and then servicetype
21 BTListItem::BTListItem( QListView * parent, QString name , QString mac, QString type ) 15 BTListItem::BTListItem( QListView * parent, const QString &name , const QString& mac, const QString& type )
22 : QListViewItem( parent, name ){ 16 : QListViewItem( parent, name ){
@@ -29,3 +23,3 @@ namespace OpieTooth {
29 23
30 BTListItem::BTListItem( QListViewItem * parent , QString name, QString mac, QString type ) 24 BTListItem::BTListItem( QListViewItem * parent , const QString& name, const QString& mac, const QString& type )
31 : QListViewItem( parent, name ){ 25 : QListViewItem( parent, name ){
@@ -38,3 +32,3 @@ namespace OpieTooth {
38 32
39 void BTListItem::setMac( QString mac ) { 33 void BTListItem::setMac( const QString& mac ) {
40 m_mac = mac; 34 m_mac = mac;
@@ -42,3 +36,3 @@ namespace OpieTooth {
42 36
43 QString BTListItem::mac() { 37 QString BTListItem::mac() const {
44 return m_mac; 38 return m_mac;
@@ -46,3 +40,3 @@ namespace OpieTooth {
46 40
47 void BTListItem::setName( QString name ) { 41 void BTListItem::setName( const QString& name ) {
48 m_name = name; 42 m_name = name;
@@ -50,3 +44,3 @@ namespace OpieTooth {
50 44
51 QString BTListItem::name() { 45 QString BTListItem::name() const {
52 return m_name; 46 return m_name;
@@ -54,3 +48,3 @@ namespace OpieTooth {
54 48
55 void BTListItem::setType( QString type ) { 49 void BTListItem::setType( const QString& type ) {
56 m_type = type; 50 m_type = type;
@@ -58,3 +52,3 @@ namespace OpieTooth {
58 52
59 QString BTListItem::type() { 53 QString BTListItem::type() const {
60 return m_type; 54 return m_type;