mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-20 06:24:17 +00:00
android: log: TrimSourcePath: Cannot be constexpr.
This commit is contained in:
parent
8a06463c97
commit
4cc8d43fa1
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
namespace Log {
|
||||
|
||||
// trims up to and including the last of ../, ..\, src/, src\ in a string
|
||||
constexpr const char* TrimSourcePath(std::string_view source) {
|
||||
inline const char* TrimSourcePath(std::string_view source) {
|
||||
const auto rfind = [source](const std::string_view match) {
|
||||
return source.rfind(match) == source.npos ? 0 : (source.rfind(match) + match.size());
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue