ZRCola::translation_db::translation::com_start marked as const now

This commit is contained in:
Simon Rozman 2017-03-16 09:44:43 +01:00
parent 9f083bb521
commit 03ff056898
2 changed files with 7 additions and 7 deletions

View File

@ -46,14 +46,14 @@ namespace ZRCola {
/// Translation data
///
struct translation {
unsigned __int16 rank; ///< Decomposition rank
static unsigned __int16 com_start; ///< Composed character start in \c data
unsigned __int16 rank; ///< Decomposition rank
static const unsigned __int16 com_start; ///< Composed character start in \c data
union {
unsigned __int16 com_end; ///< Composed character end in \c data
unsigned __int16 dec_start; ///< Decomposed character start in \c data
unsigned __int16 com_end; ///< Composed character end in \c data
unsigned __int16 dec_start; ///< Decomposed character start in \c data
};
unsigned __int16 dec_end; ///< Decomposed string end in \c data
wchar_t data[]; ///< Decomposed string and composed character
unsigned __int16 dec_end; ///< Decomposed string end in \c data
wchar_t data[]; ///< Decomposed string and composed character
};
#pragma pack(pop)

View File

@ -19,7 +19,7 @@
#include "stdafx.h"
unsigned __int16 ZRCola::translation_db::translation::com_start = 0;
const unsigned __int16 ZRCola::translation_db::translation::com_start = 0;
void ZRCola::translation_db::Compose(_In_z_count_(inputMax) const wchar_t* input, _In_ size_t inputMax, _Out_ std::wstring &output, _Out_opt_ std::vector<mapping>* map) const