From 3309bf33c7a43fe718fe1e5707f50750753422c1 Mon Sep 17 00:00:00 2001 From: Pawel Dziepak Date: Mon, 23 Dec 2013 03:52:13 +0100 Subject: [PATCH] kernel/util: Make MinMaxHeap::Peek*() const --- headers/private/kernel/util/MinMaxHeap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/private/kernel/util/MinMaxHeap.h b/headers/private/kernel/util/MinMaxHeap.h index cc4ab0a7a0..40fd1b1c4c 100644 --- a/headers/private/kernel/util/MinMaxHeap.h +++ b/headers/private/kernel/util/MinMaxHeap.h @@ -73,8 +73,8 @@ public: MinMaxHeap(int initialSize); ~MinMaxHeap(); - inline Element* PeekMinimum(); - inline Element* PeekMaximum(); + inline Element* PeekMinimum() const; + inline Element* PeekMaximum() const; static const Key& GetKey(Element* element); @@ -190,7 +190,7 @@ MIN_MAX_HEAP_CLASS_NAME::~MinMaxHeap() MIN_MAX_HEAP_TEMPLATE_LIST Element* -MIN_MAX_HEAP_CLASS_NAME::PeekMinimum() +MIN_MAX_HEAP_CLASS_NAME::PeekMinimum() const { if (fMinLastElement > 0) return fMinElements[0]; @@ -205,7 +205,7 @@ MIN_MAX_HEAP_CLASS_NAME::PeekMinimum() MIN_MAX_HEAP_TEMPLATE_LIST Element* -MIN_MAX_HEAP_CLASS_NAME::PeekMaximum() +MIN_MAX_HEAP_CLASS_NAME::PeekMaximum() const { if (fMaxLastElement > 0) return fMaxElements[0];