Revert "android: log: TrimSourcePath: Cannot be constexpr."

This reverts commit 21a75c52
This commit is contained in:
BreadFish64 2020-04-21 20:30:20 -05:00 committed by bunnei
parent 69a8924344
commit 320cc03abb

View File

@ -11,7 +11,7 @@
namespace Log {
// trims up to and including the last of ../, ..\, src/, src\ in a string
inline const char* TrimSourcePath(std::string_view source) {
constexpr 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());
};