8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 02:03:03 +01:00

Literal strings should be treated as const data.

This commit is contained in:
robocop 2008-03-25 12:05:17 +00:00
parent 334631e89a
commit 7806b09a62
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ const InternalInfo::InfoAttr InternalInfo::attr_array[max_internal_id] = {
{"INSERTING/UPDATING/DELETING", REQ_trigger}
};
char* InternalInfo::getAlias(internal_info_id info_id)
const char* InternalInfo::getAlias(internal_info_id info_id)
{
return attr_array[info_id].alias_name;
}

View File

@ -28,12 +28,12 @@
class InternalInfo {
private:
struct InfoAttr {
char* alias_name;
const char* alias_name;
unsigned short req_mask;
};
static const InfoAttr attr_array[max_internal_id];
public:
static char *getAlias(internal_info_id);
static const char* getAlias(internal_info_id);
static USHORT getMask(internal_info_id);
};