aboutsummaryrefslogtreecommitdiff
path: root/src/irrlicht_changes
diff options
context:
space:
mode:
authorLoïc Blot <loic.blot@unix-experience.fr>2019-03-14 11:49:46 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-03-14 12:30:13 +0100
commit02a23892f94d3c83a6bdc301defc0e7ade7e1c2b (patch)
tree3e93220c7b2439b900d0acba21cfb555266a1f54 /src/irrlicht_changes
parenta6a04c4b5b0cd475ea265b63ff6ff52daf66db42 (diff)
downloadminetest-02a23892f94d3c83a6bdc301defc0e7ade7e1c2b.tar.gz
minetest-02a23892f94d3c83a6bdc301defc0e7ade7e1c2b.tar.bz2
minetest-02a23892f94d3c83a6bdc301defc0e7ade7e1c2b.zip
LINT fixes since recent tooling update
Diffstat (limited to 'src/irrlicht_changes')
-rw-r--r--src/irrlicht_changes/irrUString.h4
1 files changed, 2 insertions, 2 deletions
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<uchar8_t*>(ret.c_str());
+ uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
*ptr8++ = unicode::BOM_ENCODE_UTF16_LE[0];
*ptr8 = unicode::BOM_ENCODE_UTF16_LE[1];
}
else
{
- uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(ret.c_str());
+ uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
*ptr8++ = unicode::BOM_ENCODE_UTF16_BE[0];
*ptr8 = unicode::BOM_ENCODE_UTF16_BE[1];
}