summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btlistitem.cpp
authorzecke <zecke>2002-07-08 18:46:40 (UTC)
committer zecke <zecke>2002-07-08 18:46:40 (UTC)
commit7d82c654e6a1df83f70b2d81aa05a1175799b66b (patch) (side-by-side diff)
tree079e87ac4dcd96c304a4e8eb7f928194fffe63f1 /noncore/net/opietooth/manager/btlistitem.cpp
parent35d0ca5cc59b82af7b7ddb343ec092c3171b11ef (diff)
downloadopie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.zip
opie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.tar.gz
opie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.tar.bz2
API clean ups
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 {
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;