diff options
Diffstat (limited to 'writerperfect/source')
-rw-r--r-- | writerperfect/source/common/DocumentHandler.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/writerperfect/source/common/DocumentHandler.cxx b/writerperfect/source/common/DocumentHandler.cxx index aa171ba8a199..869955aead67 100644 --- a/writerperfect/source/common/DocumentHandler.cxx +++ b/writerperfect/source/common/DocumentHandler.cxx @@ -31,8 +31,10 @@ static const unsigned char librvng_utf8_skip_data[256] 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 1, 1 }; -#define librvng_utf8_next_char(p) \ - ((p) + librvng_utf8_skip_data[*reinterpret_cast<unsigned char const*>(p)]) +static const char* librvng_utf8_next_char(const char* p) +{ + return p + librvng_utf8_skip_data[*reinterpret_cast<unsigned char const*>(p)]; +} static void unescapeXML(const char* s, const unsigned long sz, librevenge::RVNGString& res) { |