Skip to content

Commit

Permalink
Rename global variable with s_ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
wddgit committed Jan 25, 2018
1 parent dbe772e commit 506abcd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions FWCore/ParameterSet/src/FileInPath.cc
Expand Up @@ -17,7 +17,7 @@ namespace bf = boost::filesystem;
namespace
{

std::atomic<bool> fileLookupDisabled{false};
std::atomic<bool> s_fileLookupDisabled{false};

/// These are the names of the environment variables which control
/// the behavior of the FileInPath class. They are local to this
Expand Down Expand Up @@ -115,7 +115,7 @@ namespace edm
canonicalFilename_(),
location_(Unknown)
{
if (fileLookupDisabled) {
if (s_fileLookupDisabled) {
return;
}
getEnvironment();
Expand All @@ -126,7 +126,7 @@ namespace edm
canonicalFilename_(),
location_(Unknown)
{
if (fileLookupDisabled) {
if (s_fileLookupDisabled) {
return;
}
getEnvironment();
Expand All @@ -138,7 +138,7 @@ namespace edm
canonicalFilename_(),
location_(Unknown)
{
if (fileLookupDisabled) {
if (s_fileLookupDisabled) {
return;
}
if(r == nullptr) {
Expand Down Expand Up @@ -522,7 +522,7 @@ namespace edm
}

void FileInPath::disableFileLookup() {
fileLookupDisabled = true;
s_fileLookupDisabled = true;
}

}
Expand Down

0 comments on commit 506abcd

Please sign in to comment.