mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-03 14:09:33 +03:00
Translator: remove usage of contains()
It's not available pre-C++20 Bug: angleproject:8311 Change-Id: I41940b5f8e6a90bc0224852aefe54643f2be9cb5 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4806924 Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
committed by
Angle LUCI CQ
parent
b0777def38
commit
711db27554
@@ -78,10 +78,10 @@ class Rescoper : public TIntermTraverser
|
||||
void visitSymbol(TIntermSymbol *node) override
|
||||
{
|
||||
const TVariable &var = node->variable();
|
||||
if (mCurrentFunction && mGlobalVarsNeedRescope.contains(&var))
|
||||
if (mCurrentFunction && mGlobalVarsNeedRescope.find(&var) != mGlobalVarsNeedRescope.end())
|
||||
{
|
||||
std::set<TIntermFunctionDefinition *> &set = mGlobalVarsNeedRescope.at(&var).functions;
|
||||
if (!set.contains(mCurrentFunction))
|
||||
if (set.find(mCurrentFunction) == set.end())
|
||||
{
|
||||
set.emplace(mCurrentFunction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user