Commit 6783ebbc authored by Harald Scheirich's avatar Harald Scheirich
Browse files

BUG: Fix bug in hasMessages

Add workaround for not working cast
parent 4b458246
......@@ -75,7 +75,7 @@ CacheOutput::hasMessages() const
bool result;
result = m_messages.empty();
result = !m_messages.empty();
return result;
......@@ -199,6 +199,13 @@ public:
return m_output;
/// TODO HS-2022-06-03 There is some issue in Unity where the cast
/// to CacheOutput isn't working, this is a patch to get around that
std::shared_ptr<CacheOutput> getCacheOutput() const
return std::dynamic_pointer_cast<CacheOutput>(m_output);
/// Sets the output object used by this logger.
/// \param val The output object to be used.
void setOutput(std::shared_ptr<LogOutput> val)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment