Merge pull request #984 from ZGCDDoo/shadowed_parameter

Shadowed parameter
This commit is contained in:
Gabi Melman 2019-02-01 17:34:08 +02:00 committed by GitHub
commit 2d96896fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,10 +210,10 @@ struct source_loc
, funcname{""}
{
}
SPDLOG_CONSTEXPR source_loc(const char *filename, int line, const char *funcname)
: filename{filename}
, line{static_cast<uint32_t>(line)}
, funcname{funcname}
SPDLOG_CONSTEXPR source_loc(const char *filename_in, int line_in, const char *funcname_in)
: filename{filename_in}
, line{static_cast<uint32_t>(line_in)}
, funcname{funcname_in}
{
}