This commit is contained in:
Igor Pavlov
2015-06-15 00:00:00 +00:00
committed by Kornel Lesiński
parent 0713a3ab80
commit 54490d51d5
591 changed files with 34932 additions and 16390 deletions

View File

@@ -37,20 +37,20 @@ void PairToProp(const CUInt32PCharPair *pairs, unsigned num, UInt32 value, NCOM:
}
AString TypeToString(const char *table[], unsigned num, UInt32 value)
AString TypeToString(const char * const table[], unsigned num, UInt32 value)
{
if (value < num)
return table[value];
return GetHex(value);
}
void TypeToProp(const char *table[], unsigned num, UInt32 value, NCOM::CPropVariant &prop)
void TypeToProp(const char * const table[], unsigned num, UInt32 value, NCOM::CPropVariant &prop)
{
prop = TypeToString(table, num, value);
}
AString FlagsToString(const char **names, unsigned num, UInt32 flags)
AString FlagsToString(const char * const *names, unsigned num, UInt32 flags)
{
AString s;
for (unsigned i = 0; i < num; i++)