Skip to content

Commit

Permalink
Made static EcalSrFlag::srfNames fully const
Browse files Browse the repository at this point in the history
Although it never changed, the static pointer EcalSrFlag::srfNames
was non-const. This lead to complaints from the static analyzer.
  • Loading branch information
Dr15Jones committed Jun 22, 2015
1 parent 800bd18 commit 491f33c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DataFormats/EcalDigi/interface/EcalSrFlag.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class EcalSrFlag {
private:
/** Human readable flag value names
*/
static const char* srfNames[];
static const char* const srfNames[];
};

#endif //ECALSRFLAG not defined
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/EcalDigi/src/EcalSrFlag.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "DataFormats/EcalDigi/interface/EcalSrFlag.h"

const char* EcalSrFlag::srfNames[] = {
const char* const EcalSrFlag::srfNames[] = {
"Suppress", //SRF_SUPPRESS
"Zs1", //SRF_ZS1
"Zs2", //SRF_ZS2
Expand Down

0 comments on commit 491f33c

Please sign in to comment.