From 94cf4c2830fd6fb639c4cdc4c2efe0d28f8bc6c1 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 24 Dec 2013 13:21:42 +0100 Subject: Remove unneeded casts in Print::write(const String&) Now that Print::write(const char*) is also available, these casts are no longer needed. --- cores/arduino/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores') diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index f6e499b..9a6b964 100644 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -53,7 +53,7 @@ size_t Print::print(const __FlashStringHelper *ifsh) size_t Print::print(const String &s) { - return write(reinterpret_cast(s.c_str()), s.length()); + return write(s.c_str(), s.length()); } size_t Print::print(const char str[]) -- cgit v1.2.3-18-g5258