diff options
author | Louise Poubel <louise@openrobotics.org> | 2020-11-18 09:53:15 -0800 |
---|---|---|
committer | Louise Poubel <louise@openrobotics.org> | 2020-11-18 09:53:15 -0800 |
commit | 350d32a5739e567d700dde2326673f134676b7d1 (patch) | |
tree | 15674fd447b3a63f5559dc6082401d5d28bb4b94 | |
parent | b46cd4685edb126dc1cd754dc61b247e5e773d0d (diff) | |
download | tinyobjloader-350d32a5739e567d700dde2326673f134676b7d1.tar.gz |
Remove C++11
Signed-off-by: Louise Poubel <louise@openrobotics.org>
-rw-r--r-- | tiny_obj_loader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index c848959..bbb35ca 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -1665,7 +1665,8 @@ static void SplitString(const std::string &s, char delim, char escape, std::string token; bool escaping = false; - for (char ch : s) { + for (int i = 0; i < s.size(); ++i) { + char ch = s[i]; if (escaping) { escaping = false; } else if (ch == escape) { |