Fixes pessimistic std::move (#1069)

Also adds test to ensure all the sim headers get compiled

Closes #1068
This commit is contained in:
Thad House
2018-05-16 19:45:46 -07:00
committed by Peter Johnson
parent ef442d775d
commit 11d46713d1
16 changed files with 134 additions and 85 deletions

View File

@@ -27,7 +27,7 @@ class AnalogOutSim {
m_index, -1, callback, &HALSIM_CancelAnalogOutVoltageCallback);
store->SetUid(HALSIM_RegisterAnalogOutVoltageCallback(
m_index, &CallbackStoreThunk, store.get(), initialNotify));
return std::move(store);
return store;
}
double GetVoltage() { return HALSIM_GetAnalogOutVoltage(m_index); }
void SetVoltage(double voltage) {
@@ -40,7 +40,7 @@ class AnalogOutSim {
m_index, -1, callback, &HALSIM_CancelAnalogOutInitializedCallback);
store->SetUid(HALSIM_RegisterAnalogOutInitializedCallback(
m_index, &CallbackStoreThunk, store.get(), initialNotify));
return std::move(store);
return store;
}
bool GetInitialized() { return HALSIM_GetAnalogOutInitialized(m_index); }
void SetInitialized(bool initialized) {