Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 13e4d7f

Browse files
author
Mattia Bertorello
committedNov 27, 2018
Put const because the methods doesn't modify the internal state of the class
Suggested by @lxrobotics
1 parent 211637a commit 13e4d7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/ArduinoIoTCloud.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class ArduinoIoTCloudClass {
5252

5353
inline void setThingId(String const thing_id) { _thing_id = thing_id; };
5454

55-
inline String getThingId() { return _thing_id; };
56-
inline String getDeviceId() { return _id; };
55+
inline String getThingId() const { return _thing_id; };
56+
inline String getDeviceId() const { return _id; };
5757

5858
#define addProperty( v, ...) addPropertyReal(v, #v, __VA_ARGS__)
5959

0 commit comments

Comments
 (0)
Please sign in to comment.