diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-02-03 15:53:56 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-02-03 15:53:56 +0300 |
commit | 8d4981fcc1c545396df3eac87a3c1a67f3d30038 (patch) | |
tree | 0e4f373313f7b251847fecd1186786574e8d450c /src/exporter.cpp | |
parent | 3032869b86efa52f20ad9840381a37017980f587 (diff) | |
download | texo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.tar texo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.tar.xz texo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.zip |
[texo] Abolished dependency on ScriptPP.
Diffstat (limited to 'src/exporter.cpp')
-rw-r--r-- | src/exporter.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/exporter.cpp b/src/exporter.cpp index 6a190ee..d65a9fc 100644 --- a/src/exporter.cpp +++ b/src/exporter.cpp @@ -1,15 +1,17 @@ #include "exporter.hpp" +#include <string.h> + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Texo Exporter */ -bool TexoExporter::Put(const ScriptVariable & str) +bool TexoExporter::Put(const char *str) { - bool ok = true; - const int len = str.Length(); - for (int i = 0; ok && i < len; ++i) { - ok = Put(str[i]); + bool ok = true; + while (ok && *str) { + ok = Put(*str); + ++str; } return ok; } |