Skip to content
Snippets Groups Projects
Commit 772bb1ae authored by wgodoy's avatar wgodoy
Browse files

Fixed noexcept function throwing exception

parent 6c8f9672
No related branches found
No related tags found
1 merge request!128Fixed noexcept function throwing exception
......@@ -123,7 +123,7 @@ TransportMan::GetTransportsProfilers() noexcept
}
void TransportMan::CloseFiles(const int transportIndex, const char *buffer,
const size_t size) noexcept
const size_t size)
{
if (transportIndex == -1)
{
......
......@@ -94,8 +94,15 @@ public:
* m_Transports.m_Profiler */
std::vector<profiling::IOChrono *> GetTransportsProfilers() noexcept;
/**
* Close file or files depending on transport index. Throws an exception
* if transport is not a file when transportIndex > -1.
* @param transportIndex -1: all transports, otherwise index in m_Transports
* @param buffer pass buffer to be sent to transport
* @param size passes the buffer size
*/
void CloseFiles(const int transportIndex, const char *buffer,
const size_t size) noexcept;
const size_t size);
/** Checks if all transports are closed */
bool AllTransportsClosed() const noexcept;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment