Skip to content

Commit 70c7ca6

Browse files
committed
const
1 parent 94c2aa3 commit 70c7ca6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

externals/simplecpp/simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2582,7 +2582,7 @@ static void simplifyHasInclude(simplecpp::TokenList &expr, const simplecpp::DUI
25822582
for (simplecpp::Token *tok = expr.front(); tok; tok = tok->next) {
25832583
if (tok->str() != HAS_INCLUDE)
25842584
continue;
2585-
simplecpp::Token *tok1 = tok->next;
2585+
const simplecpp::Token *tok1 = tok->next;
25862586
if (!tok1) {
25872587
throw std::runtime_error("missing __has_include argument");
25882588
}

lib/token.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ void TokenImpl::setCppcheckAttribute(TokenImpl::CppcheckAttributes::Type type, M
26692669

26702670
bool TokenImpl::getCppcheckAttribute(TokenImpl::CppcheckAttributes::Type type, MathLib::bigint &value) const
26712671
{
2672-
CppcheckAttributes *attr = mCppcheckAttributes;
2672+
const CppcheckAttributes *attr = mCppcheckAttributes;
26732673
while (attr && attr->type != type)
26742674
attr = attr->next;
26752675
if (attr)

0 commit comments

Comments
 (0)