Merge remote-tracking branch 'lenormf/fix-4340'
This commit is contained in:
commit
5c1e10decb
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user