Skip to content

Commit 379dd0f

Browse files
authored
Merge pull request cms-sw#31868 from fwyzard/fix_HcalObjects_warning
Fix warning about "type qualifier on return type is meaningless"
2 parents 5a0ab55 + 6d3614d commit 379dd0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CondFormats/HcalObjects/interface/HcalCondObjectContainer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class HcalCondObjectContainer : public HcalCondObjectContainerBase {
6464
const Item* getValues(DetId fId, bool throwOnFail = true) const;
6565

6666
// does the object exist ?
67-
const bool exists(DetId fId) const;
67+
bool exists(DetId fId) const;
6868

6969
// set the object/fill it in:
7070
bool addValues(const Item& myItem);
@@ -220,7 +220,7 @@ const Item* HcalCondObjectContainer<Item>::getValues(DetId fId, bool throwOnFail
220220
}
221221

222222
template <class Item>
223-
const bool HcalCondObjectContainer<Item>::exists(DetId fId) const {
223+
bool HcalCondObjectContainer<Item>::exists(DetId fId) const {
224224
const Item* cell = getValues(fId, false);
225225

226226
if (cell) {

0 commit comments

Comments
 (0)