diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-13 19:16:21 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-13 19:16:21 +0300 |
commit | a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b (patch) | |
tree | 1b9473f7f27221a5de56bb51edacd5be9a61a6b9 /src/importer.cpp | |
parent | ed7a63015c1583d5544ac18bbaccaedc95f3e5e3 (diff) | |
download | texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.tar texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.tar.xz texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.zip |
Cosmetical changes.
Diffstat (limited to 'src/importer.cpp')
-rw-r--r-- | src/importer.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/importer.cpp b/src/importer.cpp index 73ff060..bab7f8b 100644 --- a/src/importer.cpp +++ b/src/importer.cpp @@ -4,11 +4,14 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Texo Importer */ -TexoImporter::TexoImporter(TexoProducer &producer): +TexoImporter::TexoImporter(TexoProducer & producer): producer(producer), ok(true) {} -TexoImporter::~TexoImporter() { End(); } +TexoImporter::~TexoImporter() +{ + End(); +} bool TexoImporter::End() @@ -21,12 +24,12 @@ bool TexoImporter::Put(char c) return ok = ok && TruePut(c); } -bool TexoImporter::Put(const ScriptVariable &s) +bool TexoImporter::Put(const ScriptVariable & s) { return ok = ok && TruePut(s); } -bool TexoImporter::Put(FILE *f) +bool TexoImporter::Put(FILE * f) { return ok = ok && TruePut(f); } @@ -38,7 +41,7 @@ bool TexoImporter::TrueEnd() } -bool TexoImporter::TruePut(const ScriptVariable &str) +bool TexoImporter::TruePut(const ScriptVariable & str) { const int len = str.Length(); for (int i = 0; ok && i < len; ++i) { @@ -47,7 +50,7 @@ bool TexoImporter::TruePut(const ScriptVariable &str) return ok; } -bool TexoImporter::TruePut(FILE *file) +bool TexoImporter::TruePut(FILE * file) { if (file) { for (int c = fgetc(file); ok && c != EOF; c = fgetc(file)) { |