Skip to content

Commit

Permalink
- make methods "const"
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmistry committed Jul 15, 2015
1 parent 0228dc7 commit 0b217c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions BLEUuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ BLEUuid::BLEUuid(const char * str)
}
}

const char* BLEUuid::str() {
const char* BLEUuid::str() const {
return this->_str;
}

const unsigned char* BLEUuid::data() {
const unsigned char* BLEUuid::data() const {
return this->_data;
}

unsigned char BLEUuid::length() {
unsigned char BLEUuid::length() const {
return this->_length;
}
6 changes: 3 additions & 3 deletions BLEUuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class BLEUuid
public:
BLEUuid(const char * str);

const char* str();
const unsigned char* data();
unsigned char length();
const char* str() const;
const unsigned char* data() const;
unsigned char length() const;

private:
const char* _str;
Expand Down

0 comments on commit 0b217c2

Please sign in to comment.