summaryrefslogtreecommitdiff
path: root/source/slang/slang-doc-markdown-writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-doc-markdown-writer.cpp')
-rw-r--r--source/slang/slang-doc-markdown-writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-doc-markdown-writer.cpp b/source/slang/slang-doc-markdown-writer.cpp
index 0e7856f1f..de7695d18 100644
--- a/source/slang/slang-doc-markdown-writer.cpp
+++ b/source/slang/slang-doc-markdown-writer.cpp
@@ -1064,9 +1064,9 @@ void DocMarkdownWriter::writeAggType(const ASTMarkup::Entry& entry, AggTypeDeclB
auto& memberDict = aggTypeDecl->getMemberDictionary();
List<Decl*> uniqueMethods;
- for (const auto& pair : memberDict)
+ for (const auto& [_, decl] : memberDict)
{
- CallableDecl* callableDecl = as<CallableDecl>(pair.value);
+ CallableDecl* callableDecl = as<CallableDecl>(decl);
if (callableDecl && isVisible(callableDecl))
{
uniqueMethods.add(callableDecl);