Skip to content

Commit

Permalink
Merge pull request #23243 from smuzaffar/gcc8-fix-const-geometry
Browse files Browse the repository at this point in the history
[GCC 8] [GEOM] Fixed const correctness for operator()
  • Loading branch information
cmsbuild committed May 23, 2018
2 parents 88bf408 + 11c3cca commit 8a424cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DetectorDescription/OfflineDBLoader/plugins/OutputDDToDDL.cc
Expand Up @@ -29,7 +29,7 @@
namespace {
/// is sv1 < sv2
struct ddsvaluesCmp {
bool operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 );
bool operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 ) const;
};
}

Expand All @@ -56,7 +56,7 @@ class OutputDDToDDL : public edm::one::EDAnalyzer<edm::one::WatchRuns>
};

bool
ddsvaluesCmp::operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 )
ddsvaluesCmp::operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 ) const
{
if( sv1.size() < sv2.size()) return true;
if( sv2.size() < sv1.size()) return false;
Expand Down
Expand Up @@ -27,7 +27,7 @@
namespace {
/// is sv1 < sv2
struct ddsvaluesCmp {
bool operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 );
bool operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 ) const;
};
}

Expand All @@ -54,7 +54,7 @@ class OutputMagneticFieldDDToDDL : public edm::one::EDAnalyzer<edm::one::WatchRu
};

bool
ddsvaluesCmp::operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 )
ddsvaluesCmp::operator() ( const DDsvalues_type& sv1, const DDsvalues_type& sv2 ) const
{
if( sv1.size() < sv2.size()) return true;
if( sv2.size() < sv1.size()) return false;
Expand Down

0 comments on commit 8a424cf

Please sign in to comment.