Skip to content

Commit

Permalink
apply code format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Aug 8, 2019
1 parent 82c9b90 commit d0fb95f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CommonTools/Utils/src/ExpressionEvaluator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace {
return n1;
}

void remove(std::string const& name, std::string const& tmpDir="/tmp") {
void remove(std::string const& name, std::string const& tmpDir = "/tmp") {
std::string sfile = tmpDir + "/" + name + ".cc";
std::string ofile = tmpDir + "/" + name + ".so";

Expand Down Expand Up @@ -144,16 +144,16 @@ namespace reco {

void* dl = dlopen(ofile.c_str(), RTLD_LAZY);
if (!dl) {
remove(m_name, baseDir+"/tmp");
remove(m_name, baseDir + "/tmp");
throw cms::Exception("ExpressionEvaluator",
std::string("compilation/linking failed\n") + cpp + ss + "dlerror " + dlerror());
return;
}

m_expr = dlsym(dl, factory.c_str());
remove(m_name, baseDir+"/tmp");
remove(m_name, baseDir + "/tmp");
}

ExpressionEvaluator::~ExpressionEvaluator() { remove(m_name, edm::getEnvironmentVariable("CMSSW_BASE")+"/tmp"); }
ExpressionEvaluator::~ExpressionEvaluator() { remove(m_name, edm::getEnvironmentVariable("CMSSW_BASE") + "/tmp"); }

} // namespace reco

0 comments on commit d0fb95f

Please sign in to comment.