Skip to content

Commit 5985506

Browse files
Make getNumIddPerBlock a const member function
The value returned is expected to be constant for the lifetime of the cmdcontainer and not be modified Change-Id: I7a0ed5bd04e64f065ffdf0cf381d2619da9462a0 Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
1 parent c9a2406 commit 5985506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/command_container/cmdcontainer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CommandContainer : public NonCopyableOrMovableClass {
9090
void setDirtyStateForAllHeaps(bool dirty) { dirtyHeaps = dirty ? std::numeric_limits<uint32_t>::max() : 0; }
9191
void setIddBlock(void *iddBlock) { this->iddBlock = iddBlock; }
9292
void *getIddBlock() { return iddBlock; }
93-
uint32_t getNumIddPerBlock() { return numIddsPerBlock; }
93+
uint32_t getNumIddPerBlock() const { return numIddsPerBlock; }
9494

9595
protected:
9696
void *iddBlock = nullptr;

0 commit comments

Comments
 (0)