Skip to content

Commit

Permalink
oneTBB: use non-const iterator for tbb::concurrent_unordered_map
Browse files Browse the repository at this point in the history
Older TBB versions incorrectly allowed these to be const.
  • Loading branch information
brechtvl committed Jun 23, 2023
1 parent 0193864 commit 65c0d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pxr/imaging/hd/dependencyForwardingSceneIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ HdDependencyForwardingSceneIndex::_PrimDirtied(
void
HdDependencyForwardingSceneIndex::_ClearDependencies(const SdfPath &primPath)
{
_AffectedPrimToDependsOnPathsEntryMap::const_iterator it =
_AffectedPrimToDependsOnPathsEntryMap::iterator it =
_affectedPrimToDependsOnPathsMap.find(primPath);
if (it == _affectedPrimToDependsOnPathsMap.end()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion pxr/usdImaging/usdImaging/resolvedAttributeCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ typename UsdImaging_ResolvedAttributeCache<Strategy, ImplData>::_Entry*
UsdImaging_ResolvedAttributeCache<Strategy, ImplData>::_GetCacheEntryForPrim(
const UsdPrim &prim) const
{
typename _CacheMap::const_iterator it = _cache.find(prim);
typename _CacheMap::iterator it = _cache.find(prim);
if (it != _cache.end()) {
return &it->second;
}
Expand Down

0 comments on commit 65c0d86

Please sign in to comment.