Skip to content

Commit 0ef57de

Browse files
committed
loader: const correctness
1 parent 85c2151 commit 0ef57de

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/loader/api_layer_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ ApiLayerInterface::~ApiLayerInterface() {
390390
LoaderPlatformLibraryClose(_layer_library);
391391
}
392392

393-
bool ApiLayerInterface::SupportsExtension(const std::string& extension_name) {
393+
bool ApiLayerInterface::SupportsExtension(const std::string& extension_name) const {
394394
bool found_prop = false;
395395
for (const std::string& supported_extension : _supported_extensions) {
396396
if (supported_extension == extension_name) {

src/loader/api_layer_interface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ApiLayerInterface {
5454

5555
// Generated methods
5656
void GenUpdateInstanceDispatchTable(XrInstance instance, std::unique_ptr<XrGeneratedDispatchTable>& table);
57-
bool SupportsExtension(const std::string& extension_name);
57+
bool SupportsExtension(const std::string& extension_name) const;
5858

5959
private:
6060
std::string _layer_name;

0 commit comments

Comments
 (0)