Clean up warnings

* msvc
 * pvs-studio
This commit is contained in:
Jason Turner
2016-12-06 10:31:36 -07:00
parent 92c2ade1cd
commit ce62706fea
5 changed files with 42 additions and 4 deletions

View File

@@ -251,8 +251,9 @@ namespace chaiscript
~Sentinel()
{
// save new pointer data
m_data.get().m_data_ptr = m_ptr.get().get();
m_data.get().m_const_data_ptr = m_ptr.get().get();
const auto ptr = m_ptr.get().get();
m_data.get().m_data_ptr = ptr;
m_data.get().m_const_data_ptr = ptr;
}
Sentinel& operator=(Sentinel&&s) = default;