Merge remote-tracking branch 'lenormf/fix-4340'

This commit is contained in:
Maxime Coste 2021-10-24 09:04:14 +11:00
commit 5c1e10decb
3 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ public:
return m_parent->user_modes();
return m_user_modes;
}
void add_user_mode(const String user_mode_name);
void add_user_mode(String user_mode_name);
private:
KeymapManager()

View File

@ -24,7 +24,7 @@ struct StringData : UseMemoryDomain<MemoryDomain::SharedString>
private:
StringData(int len) : refcount(0), length(len) {}
static constexpr uint32_t interned_flag = 1 << 31;
static constexpr uint32_t interned_flag = 1u << 31;
static constexpr uint32_t refcount_mask = ~interned_flag;
struct PtrPolicy

View File

@ -21,7 +21,7 @@ String trim_indent(StringView str)
utf8::iterator it{str.begin(), str};
while (it != str.end() and is_horizontal_blank(*it))
it++;
++it;
const StringView indent{str.begin(), it.base()};
return accumulate(str | split_after<StringView>('\n') | transform([&](auto&& line) {