Hello,

> -static const char *StrEnteringLoop = "Entering loop body";
> -static const char *StrLoopBodyZero = "Loop body executed 0 times";
> +static const char *const StrEnteringLoop = "Entering loop body";
> +static const char *const StrLoopBodyZero = "Loop body executed 0 times";

Why not replace the pointers with arrays:

> static const char StrEnteringLoop[] = "Entering loop body";

That would avoid having to remember to add two const. It could even result
in slightly (very very slightly) faster code as it would remove a pointer
indirection.

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to