Skip to content

Commit

Permalink
Fixed non-const statics for DetectorDescription/Core
Browse files Browse the repository at this point in the history
  • Loading branch information
nclopezo committed Nov 13, 2013
1 parent f4b04d8 commit f5b3ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DetectorDescription/Core/src/DDName.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void DDName::defineId(const std::pair<std::string,std::string> & nm, DDName::id_

const std::string & DDName::name() const
{
static std::string ano_("anonymous");
const static std::string ano_("anonymous");
const std::string * result;
if (id_ < 0) {
result = &ano_;
Expand All @@ -100,7 +100,7 @@ const std::string & DDName::name() const

const std::string & DDName::ns() const
{
static std::string ano_("anonymous");
const static std::string ano_("anonymous");
const std::string * result;
if (id_ < 0) {
result = &ano_;
Expand Down

0 comments on commit f5b3ad0

Please sign in to comment.