mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Make new_vector_expr and new_quaternion_expr const-correct.
This commit is contained in:
parent
13503198e5
commit
18ae178eaf
2 changed files with 4 additions and 4 deletions
|
@ -371,7 +371,7 @@ expr_t *new_float_expr (float float_val);
|
|||
\return The new vector constant expression node
|
||||
(expr_t::e::vector_val).
|
||||
*/
|
||||
expr_t *new_vector_expr (float *vector_val);
|
||||
expr_t *new_vector_expr (const float *vector_val);
|
||||
|
||||
/** Create a new entity constant expression node.
|
||||
|
||||
|
@ -415,7 +415,7 @@ expr_t *new_pointer_expr (int val, struct type_s *type, struct def_s *def);
|
|||
\return The new quaternion constant expression node
|
||||
(expr_t::e::quaternion_val).
|
||||
*/
|
||||
expr_t *new_quaternion_expr (float *quaternion_val);
|
||||
expr_t *new_quaternion_expr (const float *quaternion_val);
|
||||
|
||||
/** Create a new integer constant expression node.
|
||||
|
||||
|
|
|
@ -560,7 +560,7 @@ new_float_expr (float float_val)
|
|||
}
|
||||
|
||||
expr_t *
|
||||
new_vector_expr (float *vector_val)
|
||||
new_vector_expr (const float *vector_val)
|
||||
{
|
||||
expr_t *e = new_expr ();
|
||||
e->type = ex_vector;
|
||||
|
@ -609,7 +609,7 @@ new_pointer_expr (int val, type_t *type, def_t *def)
|
|||
}
|
||||
|
||||
expr_t *
|
||||
new_quaternion_expr (float *quaternion_val)
|
||||
new_quaternion_expr (const float *quaternion_val)
|
||||
{
|
||||
expr_t *e = new_expr ();
|
||||
e->type = ex_quaternion;
|
||||
|
|
Loading…
Reference in a new issue