Use const reference as input parameter as suggested by julun
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26801 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1be4b7c0c5
commit
af9ccaf254
@ -48,7 +48,7 @@ public:
|
||||
|
||||
LocalDevice* GetLocalDeviceOwner();
|
||||
|
||||
RemoteDevice(BString address);
|
||||
RemoteDevice(const BString& address);
|
||||
RemoteDevice(bdaddr_t address);
|
||||
|
||||
protected:
|
||||
|
@ -53,7 +53,7 @@ RemoteDevice::GetFriendlyName(bool alwaysAsk)
|
||||
void* remoteNameCommand = NULL;
|
||||
size_t size;
|
||||
|
||||
/* Issue inquiry command */
|
||||
// Issue inquiry command
|
||||
BMessage request(BT_MSG_HANDLE_SIMPLE_REQUEST);
|
||||
BMessage reply;
|
||||
|
||||
@ -84,7 +84,7 @@ RemoteDevice::GetFriendlyName(bool alwaysAsk)
|
||||
}
|
||||
|
||||
} else {
|
||||
// seems we got a netative event
|
||||
// seems we got a negative event
|
||||
return BString("#CommandFailed#Not Valid name");
|
||||
}
|
||||
}
|
||||
@ -166,7 +166,7 @@ RemoteDevice::RemoteDevice(bdaddr_t address)
|
||||
}
|
||||
|
||||
|
||||
RemoteDevice::RemoteDevice(BString address)
|
||||
RemoteDevice::RemoteDevice(const BString& address)
|
||||
{
|
||||
fBdaddr = bdaddrUtils::FromString((const char *)address.String());
|
||||
fMessenger = _RetrieveBluetoothMessenger();
|
||||
@ -183,7 +183,6 @@ RemoteDevice::~RemoteDevice()
|
||||
BString
|
||||
RemoteDevice::GetProperty(const char* property) /* Throwing */
|
||||
{
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user