summaryrefslogtreecommitdiff
path: root/src/exporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exporter.cpp')
-rw-r--r--src/exporter.cpp12
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;
}