summaryrefslogtreecommitdiffstats
path: root/src/text/Text.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-20 19:31:59 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-20 19:31:59 +0200
commitbc0ddc6b18405d4602a90edae02e98e8a001eab9 (patch)
tree31ddded25fb83dbff3c4064a92ab55d19e4201c2 /src/text/Text.h
parentMerge pull request #248 from Nmzik/master (diff)
downloadre3-bc0ddc6b18405d4602a90edae02e98e8a001eab9.tar
re3-bc0ddc6b18405d4602a90edae02e98e8a001eab9.tar.gz
re3-bc0ddc6b18405d4602a90edae02e98e8a001eab9.tar.bz2
re3-bc0ddc6b18405d4602a90edae02e98e8a001eab9.tar.lz
re3-bc0ddc6b18405d4602a90edae02e98e8a001eab9.tar.xz
re3-bc0ddc6b18405d4602a90edae02e98e8a001eab9.tar.zst
re3-bc0ddc6b18405d4602a90edae02e98e8a001eab9.zip
Diffstat (limited to '')
-rw-r--r--src/text/Text.h (renamed from src/core/Text.h)7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/Text.h b/src/text/Text.h
index f554628c..6f39ba49 100644
--- a/src/core/Text.h
+++ b/src/text/Text.h
@@ -21,6 +21,8 @@ public:
CKeyEntry *entries;
int numEntries;
+ CKeyArray(void) : entries(nil), numEntries(0) {}
+ ~CKeyArray(void) { Unload(); }
void Load(uint32 length, uint8 *data, int *offset);
void Unload(void);
void Update(wchar *chars);
@@ -34,6 +36,8 @@ public:
wchar *chars;
int numChars;
+ CData(void) : chars(nil), numChars(0) {}
+ ~CData(void) { Unload(); }
void Load(uint32 length, uint8 *data, int *offset);
void Unload(void);
};
@@ -42,10 +46,9 @@ class CText
{
CKeyArray keyArray;
CData data;
- int8 encoding;
+ char encoding;
public:
CText(void);
- ~CText(void);
void Load(void);
void Unload(void);
wchar *Get(const char *key);