GCC: drop std namespace from strlen in sql::Database
std::strlen is defined in cstring. string.h is included already, but without namespace std. Bug: 819294 Change-Id: Iea59a508d5b07404526974bcd30f13a1f1fd63f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3076723 Reviewed-by: Marijn Kruisselbrink <mek@chromium.org> Commit-Queue: Stephan Hartmann <stha09@googlemail.com> Cr-Commit-Position: refs/heads/master@{#910196}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
8035f0b71b
commit
71c846aba8
@ -1329,7 +1329,7 @@ scoped_refptr<Database::StatementRef> Database::GetStatementImpl(
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
DCHECK_EQ(unused_sql, sql + std::strlen(sql))
|
||||
DCHECK_EQ(unused_sql, sql + strlen(sql))
|
||||
<< "Unused text: " << std::string(unused_sql) << "\n"
|
||||
<< "in prepared SQL statement: " << std::string(sql);
|
||||
#endif // DCHECK_IS_ON()
|
||||
@ -1384,7 +1384,7 @@ bool Database::IsSQLValid(const char* sql) {
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
DCHECK_EQ(unused_sql, sql + std::strlen(sql))
|
||||
DCHECK_EQ(unused_sql, sql + strlen(sql))
|
||||
<< "Unused text: " << std::string(unused_sql) << "\n"
|
||||
<< "in SQL statement: " << std::string(sql);
|
||||
#endif // DCHECK_IS_ON()
|
||||
|
Reference in New Issue
Block a user