mirror of
https://github.com/vtnerd/monero-lws.git
synced 2024-12-22 19:39: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)
|
||||
{
|
||||
char const* const just_name = loc.file_name() ?
|
||||
std::strrchr(loc.file_name(), '/') : nullptr;
|
||||
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();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue