mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Const correctness: we no longer need this disguised const_cast because
the function accepts a const string.
This commit is contained in:
parent
79b8e1be0a
commit
609ce1c1b1
@ -462,10 +462,9 @@ jrd_req* CMP_clone_request(thread_db* tdbb, jrd_req* request, USHORT level, bool
|
||||
if (validate) {
|
||||
jrd_prc* procedure = request->req_procedure;
|
||||
if (procedure) {
|
||||
// can't use const
|
||||
TEXT* prc_sec_name =
|
||||
const TEXT* prc_sec_name =
|
||||
(procedure->prc_security_name.hasData() ?
|
||||
(TEXT *) procedure->prc_security_name.c_str() : NULL);
|
||||
procedure->prc_security_name.c_str() : NULL);
|
||||
const SecurityClass* sec_class = SCL_get_class(prc_sec_name);
|
||||
SCL_check_access(sec_class, 0, 0,
|
||||
0, SCL_execute, object_procedure,
|
||||
|
Loading…
Reference in New Issue
Block a user