adb: remove meaningless const.
Returning a const value is pointless. Test: mma Change-Id: Ia578d75345361d53e4a29bb9724bfcc161b8d8be
This commit is contained in:
parent
0bbf69cbbf
commit
ffbd3364a4
2 changed files with 3 additions and 3 deletions
|
|
@ -709,7 +709,7 @@ void atransport::SetConnectionState(ConnectionState state) {
|
|||
connection_state_ = state;
|
||||
}
|
||||
|
||||
const std::string atransport::connection_state_name() const {
|
||||
std::string atransport::connection_state_name() const {
|
||||
ConnectionState state = GetConnectionState();
|
||||
switch (state) {
|
||||
case kCsOffline:
|
||||
|
|
|
|||
|
|
@ -204,8 +204,8 @@ class atransport {
|
|||
char token[TOKEN_SIZE] = {};
|
||||
size_t failed_auth_attempts = 0;
|
||||
|
||||
const std::string serial_name() const { return serial ? serial : "<unknown>"; }
|
||||
const std::string connection_state_name() const;
|
||||
std::string serial_name() const { return serial ? serial : "<unknown>"; }
|
||||
std::string connection_state_name() const;
|
||||
|
||||
void update_version(int version, size_t payload);
|
||||
int get_protocol_version() const;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue