Skip to content
Snippets Groups Projects
Commit 48c907f2 authored by schoen's avatar schoen
Browse files

fixed warning for bad alloc exception

parent a20c2669
No related branches found
No related tags found
1 merge request!51Open source
......@@ -220,9 +220,8 @@ int main( int argc, char* argv[])
}
}
catch (const std::bad_alloc e)
catch (const std::bad_alloc& e)
{
*logging::out << logging::Logger::LOGGER_ERROR << "Bad Alloc:" << e.what() << "\n";
}
catch (const std::exception& e)
......
......@@ -224,9 +224,8 @@ int main( int argc, char* argv[])
}
}
catch (const std::bad_alloc e)
catch (const std::bad_alloc& e)
{
*logging::out << logging::Logger::LOGGER_ERROR << "Bad Alloc:" << e.what() << "\n";
}
catch (const std::exception& e)
......
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