Skip to content

Commit

Permalink
applied code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jun 22, 2018
1 parent 5607d7f commit 46017d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DQM/EcalMonitorClient/interface/EcalDQMonitorClient.h
Expand Up @@ -10,7 +10,7 @@
class EcalDQMonitorClient : public DQMEDHarvester, public ecaldqm::EcalDQMonitor {
public:
EcalDQMonitorClient(edm::ParameterSet const&);
~EcalDQMonitorClient();
~EcalDQMonitorClient() override;

static void fillDescriptions(edm::ConfigurationDescriptions&);

Expand Down
2 changes: 1 addition & 1 deletion DQM/EcalMonitorDbModule/plugins/EcalCondDBReader.cc
Expand Up @@ -64,7 +64,7 @@ EcalCondDBReader::EcalCondDBReader(edm::ParameterSet const& _ps) :
db = std::auto_ptr<EcalCondDBInterface>(new EcalCondDBInterface(DBName, userName, password));
}
catch(std::runtime_error& re){
if(hostName != ""){
if(!hostName.empty()){
try{
db = std::auto_ptr<EcalCondDBInterface>(new EcalCondDBInterface(hostName, DBName, userName, password, hostPort));
}
Expand Down
2 changes: 1 addition & 1 deletion DQM/EcalMonitorDbModule/plugins/EcalCondDBWriter.cc
Expand Up @@ -76,7 +76,7 @@ EcalCondDBWriter::EcalCondDBWriter(edm::ParameterSet const& _ps) :
db = std::auto_ptr<EcalCondDBInterface>(new EcalCondDBInterface(DBName, userName, password));
}
catch(std::runtime_error& re){
if(hostName != ""){
if(!hostName.empty()){
try{
db = std::auto_ptr<EcalCondDBInterface>(new EcalCondDBInterface(hostName, DBName, userName, password, hostPort));
}
Expand Down

0 comments on commit 46017d7

Please sign in to comment.