Skip to content

Commit

Permalink
HdReprSharedPtr is now a std::shared_ptr instead of boost.
Browse files Browse the repository at this point in the history
(Internal change: 2051759)
  • Loading branch information
c64kernal authored and pixar-oss committed Mar 30, 2020
1 parent 677978c commit 310d9fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pxr/imaging/hd/rprim.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HdMaterial;
class HdRenderIndex;
class HdRenderParam;

typedef boost::shared_ptr<HdRepr> HdReprSharedPtr;
using HdReprSharedPtr = std::shared_ptr<HdRepr>;

using HdBufferSourceSharedPtr = std::shared_ptr<HdBufferSource>;
using HdBufferSourceSharedPtrVector = std::vector<HdBufferSourceSharedPtr>;
Expand Down
2 changes: 1 addition & 1 deletion pxr/imaging/hdSt/basisCurves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ HdStBasisCurves::_InitRepr(TfToken const &reprToken, HdDirtyBits *dirtyBits)
_BasisCurvesReprConfig::DescArray descs = _GetReprDesc(reprToken);

// add new repr
_reprs.emplace_back(reprToken, boost::make_shared<HdRepr>());
_reprs.emplace_back(reprToken, std::make_shared<HdRepr>());
HdReprSharedPtr &repr = _reprs.back().second;

*dirtyBits |= HdChangeTracker::NewRepr;
Expand Down
2 changes: 1 addition & 1 deletion pxr/imaging/hdSt/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ HdStMesh::_InitRepr(TfToken const &reprToken, HdDirtyBits *dirtyBits)
bool isNew = it == _reprs.end();
if (isNew) {
// add new repr
_reprs.emplace_back(reprToken, boost::make_shared<HdRepr>());
_reprs.emplace_back(reprToken, std::make_shared<HdRepr>());
HdReprSharedPtr &repr = _reprs.back().second;

// set dirty bit to say we need to sync a new repr (buffer array
Expand Down

0 comments on commit 310d9fb

Please sign in to comment.