Skip to content

Commit 03f89b2

Browse files
committed
Fixed IO::CwdChanger move assignment operator not returning a value
1 parent c9b184b commit 03f89b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

OpenSim/Common/IO.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ IO::CwdChanger::CwdChanger(IO::CwdChanger&& tmp) :
733733
IO::CwdChanger& IO::CwdChanger::operator=(CwdChanger&& tmp) {
734734
this->_existingDir.clear();
735735
std::swap(this->_existingDir, tmp._existingDir);
736+
return *this;
736737
}
737738

738739
void IO::CwdChanger::reset() {

0 commit comments

Comments
 (0)