mirror of
https://github.com/vtnerd/monero-lws.git
synced 2024-12-23 03:49:23 +00:00
Fix scoping in source_location.cpp
This commit is contained in:
parent
bb22848ac5
commit
f49fa78d95
1 changed files with 2 additions and 2 deletions
|
@ -33,10 +33,10 @@ namespace lws
|
||||||
{
|
{
|
||||||
std::ostream& operator<<(std::ostream& os, const source_location loc)
|
std::ostream& operator<<(std::ostream& os, const source_location loc)
|
||||||
{
|
{
|
||||||
char const* const just_name = loc.file_name() ?
|
|
||||||
std::strrchr(loc.file_name(), '/') : nullptr;
|
|
||||||
if (loc.line())
|
if (loc.line())
|
||||||
{
|
{
|
||||||
|
char const* const just_name = loc.file_name() ?
|
||||||
|
std::strrchr(loc.file_name(), '/') : nullptr;
|
||||||
os << (just_name ? just_name + 1 : loc.file_name()) << ':' << loc.line();
|
os << (just_name ? just_name + 1 : loc.file_name()) << ':' << loc.line();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue