summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppsourceprocessor.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-12-07 19:31:39 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-12-08 10:21:57 +0000
commitc021fb5179eae952e1d46509536f6096e4fb165e (patch)
treea3ad94c16fc7b9bb1bf08106b1cb389999d975ae /src/plugins/cppeditor/cppsourceprocessor.cpp
parent8e7e1dd5f2e3d0179b9b49c2914a87b09006a12c (diff)
downloadqt-creator-c021fb5179eae952e1d46509536f6096e4fb165e.tar.gz
Don't call non-const methods on temporary QList
Otherwise it may unnecessarily detach. Either store a local const reference or call const equivalent (e.g. constFirst()). Change-Id: I96d665487cf28c17e72bea17f1b8f164ce06cc70 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppsourceprocessor.cpp')
0 files changed, 0 insertions, 0 deletions