From 02a23892f94d3c83a6bdc301defc0e7ade7e1c2b Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Thu, 14 Mar 2019 11:49:46 +0100 Subject: LINT fixes since recent tooling update --- src/irrlicht_changes/irrUString.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irrlicht_changes/irrUString.h') diff --git a/src/irrlicht_changes/irrUString.h b/src/irrlicht_changes/irrUString.h index fce49e717..b628c092c 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.c_str()); + uchar8_t* ptr8 = reinterpret_cast(&ret[0]); *ptr8++ = unicode::BOM_ENCODE_UTF16_LE[0]; *ptr8 = unicode::BOM_ENCODE_UTF16_LE[1]; } else { - uchar8_t* ptr8 = reinterpret_cast(ret.c_str()); + uchar8_t* ptr8 = reinterpret_cast(&ret[0]); *ptr8++ = unicode::BOM_ENCODE_UTF16_BE[0]; *ptr8 = unicode::BOM_ENCODE_UTF16_BE[1]; } -- cgit v1.2.3