From a6a04c4b5b0cd475ea265b63ff6ff52daf66db42 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Fri, 23 Mar 2018 11:07:19 +0100 Subject: Update our tooling (Clang 5 -> 7, GCC 7 -> 8) This change permits to use up-to-date compilers, clang-tidy and clang-format It also refactor the tidy/format step to drop the binary selection from scripts and perform it directly in travis --- src/irrlicht_changes/irrUString.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irrlicht_changes') diff --git a/src/irrlicht_changes/irrUString.h b/src/irrlicht_changes/irrUString.h index b628c092c..fce49e717 100644 --- a/src/irrlicht_changes/irrUString.h +++ b/src/irrlicht_changes/irrUString.h @@ -2916,13 +2916,13 @@ public: ret[0] = unicode::BOM; else if (endian == unicode::EUTFEE_LITTLE) { - uchar8_t* ptr8 = reinterpret_cast(&ret[0]); + uchar8_t* ptr8 = reinterpret_cast(ret.c_str()); *ptr8++ = unicode::BOM_ENCODE_UTF16_LE[0]; *ptr8 = unicode::BOM_ENCODE_UTF16_LE[1]; } else { - uchar8_t* ptr8 = reinterpret_cast(&ret[0]); + uchar8_t* ptr8 = reinterpret_cast(ret.c_str()); *ptr8++ = unicode::BOM_ENCODE_UTF16_BE[0]; *ptr8 = unicode::BOM_ENCODE_UTF16_BE[1]; } -- cgit v1.2.3