From 8d4981fcc1c545396df3eac87a3c1a67f3d30038 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Mon, 3 Feb 2020 15:53:56 +0300 Subject: [texo] Abolished dependency on ScriptPP. --- src/exporter.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/exporter.cpp') 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 + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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; } -- cgit v1.2.3