From 609ce1c1b11872adc708d7182b3138167f009a20 Mon Sep 17 00:00:00 2001 From: robocop Date: Sat, 29 May 2004 04:58:56 +0000 Subject: [PATCH] Const correctness: we no longer need this disguised const_cast because the function accepts a const string. --- src/jrd/cmp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jrd/cmp.cpp b/src/jrd/cmp.cpp index 6a3411d1c8..3d6694cb3f 100644 --- a/src/jrd/cmp.cpp +++ b/src/jrd/cmp.cpp @@ -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,