From b91e077a4f40e064332bdb66f83c3fbd7f4b92fd Mon Sep 17 00:00:00 2001 From: Jared Vicory Date: Fri, 18 Aug 2017 13:42:51 -0400 Subject: [PATCH] Fixed compilation error on Mac. --- engine/cpp/Controller/Engine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/cpp/Controller/Engine.cpp b/engine/cpp/Controller/Engine.cpp index c3d18037..e9794670 100644 --- a/engine/cpp/Controller/Engine.cpp +++ b/engine/cpp/Controller/Engine.cpp @@ -284,7 +284,7 @@ bool PulseEngine::LoadState(const google::protobuf::Message& state, const SEScal std::unique_ptr PulseEngine::SaveState(const std::string& filename) { - std::unique_ptr state(new pulse::StateData()); + pulse::StateData* state = new pulse::StateData(); state->set_airwaymode(m_AirwayMode); state->set_intubation(m_Intubation); @@ -336,7 +336,8 @@ std::unique_ptr PulseEngine::SaveState(const std::str ascii_ostream.close(); } - return state; + std::unique_ptr msg(state); + return msg; } bool PulseEngine::InitializeEngine(const std::string& patientFile, const std::vector* conditions, const SEEngineConfiguration* config) -- GitLab