Skip to content

Commit 7ecba73

Browse files
committed
Use std::move
1 parent 0d9daca commit 7ecba73

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/prim-types.hh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3311,18 +3311,16 @@ class PrimSpec {
33113311
//_vsmap = std::move(rhs._vsmap);
33123312
_current_vsmap = std::move(rhs._current_vsmap);
33133313

3314-
_variantSets = rhs._variantSets;
3314+
_variantSets = std::move(rhs._variantSets);
33153315

3316-
_primChildren = rhs._primChildren;
3317-
_properties = rhs._properties;
3318-
_variantChildren = rhs._variantChildren;
3316+
_primChildren = std::move(rhs._primChildren);
3317+
_properties = std::move(rhs._properties);
3318+
_variantChildren = std::move(rhs._variantChildren);
33193319

3320-
// FIXME: std::move doesn't work for nonstd::optional. need to write user-defined move constructor in
3321-
// PrimMetas?
3322-
_metas = rhs._metas;
3320+
_metas = std::move(rhs._metas);
33233321

33243322
_current_working_path = rhs._current_working_path;
3325-
_asset_search_paths = rhs._asset_search_paths;
3323+
_asset_search_paths = std::move(rhs._asset_search_paths);
33263324
}
33273325

33283326
Specifier _specifier{Specifier::Def};

0 commit comments

Comments
 (0)