(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.

This commit is contained in:
rubidium
2008-07-17 11:19:20 +00:00
parent 88848d78b5
commit 2e4f32023c
6 changed files with 12 additions and 5 deletions

View File

@@ -30,6 +30,11 @@ enum Owner {
};
DECLARE_POSTFIX_INCREMENT(Owner);
enum {
MAX_LENGTH_PRESIDENT_NAME = 31, ///< The maximum length for a president's name
MAX_LENGTH_COMPANY_NAME = 31, ///< The maximum length for a company's name
};
/** Define basic enum properties */
template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {};
typedef TinyEnumT<Owner> OwnerByte;