Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use initializer list to safely initialize a static in ELseverityLevel #4426

Commits on Jun 27, 2014

  1. Use initializer list to safely initialize a static in ELseverityLevel

    The function loadMap is callable from multiple threads and therefore the initialization of the map must be done in a safe manner. Using an initializer list will guarantee that the compiler will make the initialization of the map thread-safe.
    This was found by the static analyzer.
    Dr15Jones committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    e5f211f View commit details
    Browse the repository at this point in the history