mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:03:02 +01:00
Literal strings should be treated as const data.
This commit is contained in:
parent
334631e89a
commit
7806b09a62
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user