From 1d3d18a96988eb091b207103f18c9fbba505013a Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 14 Jan 2019 01:40:53 +0100 Subject: CppTools: modernize Change-Id: Iaf02e4d026f1ac8b216833d83cd7a735e21ff60a Reviewed-by: Nikolai Kosjar Reviewed-by: Orgad Shaneh --- src/plugins/cpptools/compileroptionsbuilder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/cpptools/compileroptionsbuilder.cpp') diff --git a/src/plugins/cpptools/compileroptionsbuilder.cpp b/src/plugins/cpptools/compileroptionsbuilder.cpp index 8398bbd687..426a96b534 100644 --- a/src/plugins/cpptools/compileroptionsbuilder.cpp +++ b/src/plugins/cpptools/compileroptionsbuilder.cpp @@ -303,13 +303,13 @@ void CompilerOptionsBuilder::addHeaderPathOptions() } - for (const HeaderPath &headerPath : filter.userHeaderPaths) + for (const HeaderPath &headerPath : qAsConst(filter.userHeaderPaths)) addIncludeDirOptionForPath(headerPath); - for (const HeaderPath &headerPath : filter.systemHeaderPaths) + for (const HeaderPath &headerPath : qAsConst(filter.systemHeaderPaths)) addIncludeDirOptionForPath(headerPath); - for (const HeaderPath &headerPath : filter.builtInHeaderPaths) + for (const HeaderPath &headerPath : qAsConst(filter.builtInHeaderPaths)) addIncludeDirOptionForPath(headerPath); } -- cgit v1.2.1