Skip to content

Commit

Permalink
OrcLib: OrcException: remove dependency on Result.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jgautier-anssi authored and fabienfl-orc committed Jun 4, 2024
1 parent 8bcd326 commit f86aebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OrcLib/OrcException.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Exception : public std::exception
}

explicit Exception(_In_ HRESULT hr)
: m_ec(SystemError(hr))
: m_ec({hr, std::system_category()})
{
}

Expand All @@ -105,7 +105,7 @@ class Exception : public std::exception

Exception(Severity status, _In_ HRESULT hr)
: m_severity(status)
, m_ec(SystemError(hr))
, m_ec({hr, std::system_category()})
{
}
Exception(Severity status, _In_ std::error_code ec)
Expand All @@ -126,7 +126,7 @@ class Exception : public std::exception

HRESULT SetHRESULT(_In_ HRESULT Status)
{
m_ec = SystemError(Status);
m_ec.assign(Status, std::system_category());
return Status;
}

Expand Down

0 comments on commit f86aebe

Please sign in to comment.