diff --git a/pxr/imaging/hd/dependencyForwardingSceneIndex.cpp b/pxr/imaging/hd/dependencyForwardingSceneIndex.cpp index 0dcdcac98e..e22d89ba3a 100644 --- a/pxr/imaging/hd/dependencyForwardingSceneIndex.cpp +++ b/pxr/imaging/hd/dependencyForwardingSceneIndex.cpp @@ -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; diff --git a/pxr/usdImaging/usdImaging/resolvedAttributeCache.h b/pxr/usdImaging/usdImaging/resolvedAttributeCache.h index df8555f739..d452d41eb8 100644 --- a/pxr/usdImaging/usdImaging/resolvedAttributeCache.h +++ b/pxr/usdImaging/usdImaging/resolvedAttributeCache.h @@ -393,7 +393,7 @@ typename UsdImaging_ResolvedAttributeCache::_Entry* UsdImaging_ResolvedAttributeCache::_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; }