From 457005a2d3dd3b87ded8a40bd52095ca019d61f4 Mon Sep 17 00:00:00 2001 From: richterm Date: Tue, 7 Jun 2011 05:44:58 +0000 Subject: [PATCH] declaring functions const --- HLT/BASE/AliHLTComponent.cxx | 2 +- HLT/BASE/AliHLTComponent.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HLT/BASE/AliHLTComponent.cxx b/HLT/BASE/AliHLTComponent.cxx index 046b6d405df..d5d5a1bc33e 100644 --- a/HLT/BASE/AliHLTComponent.cxx +++ b/HLT/BASE/AliHLTComponent.cxx @@ -581,7 +581,7 @@ int AliHLTComponent::ConfigureFromCDBTObjString(const char* entries, const char* return iResult; } -TObject* AliHLTComponent::LoadAndExtractOCDBObject(const char* path, int version, int subVersion, const char* key) +TObject* AliHLTComponent::LoadAndExtractOCDBObject(const char* path, int version, int subVersion, const char* key) const { // see header file for function documentation AliCDBEntry* pEntry=AliHLTMisc::Instance().LoadOCDBEntry(path, GetRunNo(), version, subVersion); diff --git a/HLT/BASE/AliHLTComponent.h b/HLT/BASE/AliHLTComponent.h index f8c8a4f6892..ba19213caba 100644 --- a/HLT/BASE/AliHLTComponent.h +++ b/HLT/BASE/AliHLTComponent.h @@ -1112,9 +1112,9 @@ class AliHLTComponent : public AliHLTLogging { * @param subVersion subversion of the entry * @param key key of the object within TMap */ - TObject* LoadAndExtractOCDBObject(const char* path, int version = -1, int subVersion = -1, const char* key=NULL); + TObject* LoadAndExtractOCDBObject(const char* path, int version = -1, int subVersion = -1, const char* key=NULL) const; - TObject* LoadAndExtractOCDBObject(const char* path, const char* key) { + TObject* LoadAndExtractOCDBObject(const char* path, const char* key) const { return LoadAndExtractOCDBObject(path, -1, -1, key); } -- 2.39.3