DescriptionRemove potentially many static initializers.
|const char* kFoo| marks the memory pointed to by kFoo as constant, but
the pointer itself can be changed - some function might do `kFoo = "me!";`.
Because of that, every global that's initialized with `myglobal = kFoo;` needs
a static initializer. Fix this by making the pointer const as well.
BUG=94925
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111559
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : . #Patch Set 4 : . #
Total comments: 4
Patch Set 5 : STREQ #Patch Set 6 : no streq #
Messages
Total messages: 5 (0 generated)
|