fork microbit-dal
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/types/ManagedString.cpp
- Revision:
- 51:9198e7bb83dc
- Parent:
- 1:8aa5cdb4ab67
- Child:
- 52:3db7b4d64316
diff -r 6dde288fb262 -r 9198e7bb83dc source/types/ManagedString.cpp --- a/source/types/ManagedString.cpp Wed Jul 13 12:18:29 2016 +0100 +++ b/source/types/ManagedString.cpp Wed Jul 13 12:18:30 2016 +0100 @@ -451,7 +451,7 @@ * display.scroll(s + p) // scrolls "abcdefgh" * @endcode */ -ManagedString ManagedString::operator+ (ManagedString& s) +ManagedString ManagedString::operator+ (const ManagedString& s) { // If the other string is empty, nothing to do! if(s.length() == 0) @@ -486,4 +486,4 @@ /** * Empty string constant literal */ -ManagedString ManagedString::EmptyString((StringData*)(void*)empty); +ManagedString ManagedString::EmptyString((StringData*)(void*)empty); \ No newline at end of file