Skip to content

Commit

Permalink
Merge pull request #4475 from Dr15Jones/clangFixDQMServicesCore
Browse files Browse the repository at this point in the history
Fix clang compiler errors and warnings in DQMServices/Core
  • Loading branch information
nclopezo committed Jul 3, 2014
2 parents 5442257 + 0660564 commit c023501
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions DQMServices/Core/interface/Standalone.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ namespace edm
std::string getReleaseVersion(void)
{ return "CMSSW_STANDALONE"; }

struct ParameterSet
class ParameterSet
{
public:
template <class T> static const T &
getUntrackedParameter(const char * /* key */, const T &value)
{ return value; }
Expand All @@ -30,8 +31,9 @@ namespace edm
ServiceToken(int) {}
};

struct ServiceRegistry
class ServiceRegistry
{
public:
struct Operate
{
Operate(const ServiceToken &) {}
Expand All @@ -41,8 +43,9 @@ namespace edm
};

template <class T>
struct Service
class Service
{
public:
bool isAvailable(void) { return false; }
T *operator->(void)
{
Expand All @@ -62,8 +65,9 @@ namespace edm
void connect( T&& ) {};
};

struct ActivityRegistry
class ActivityRegistry
{
public:
template <typename T>
void watchPostSourceRun(void*, T) {}

Expand All @@ -74,8 +78,9 @@ namespace edm
};


struct JobReport
class JobReport
{
public:
JobReport(const edm::ParameterSet &) {}
void reportAnalysisFile(const std::string &, const std::map<std::string, std::string> &) {}
};
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Core/src/DQMStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ DQMStore::book(const std::string &dir, const std::string &name,
refdir += '/';
refdir += dir;

if (MonitorElement *refme = findObject(refdir, name))
if (findObject(refdir, name))
{
me->data_.flags |= DQMNet::DQM_PROP_HAS_REFERENCE;
}
Expand Down

0 comments on commit c023501

Please sign in to comment.