Skip to content
Commit b64b2e58 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use type const char[] instead of const char* for const string "variable"s

* reduces indirection:
  const char* is another object, its value pointing to the actual char array,
  while const char[] is the array itself
* prevents accidental changes of the variable:
  const char* itself is non-const type, just pointing to const chars,
  so could be set to another value without the compiler complaining
parent 5253e0e2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment