Fix compilation on clang
This commit is contained in:
parent
348e23dd8a
commit
f2b8b1ae2b
|
@ -54,7 +54,7 @@ void register_env_vars()
|
||||||
{ return context.buffer().display_name(); }
|
{ return context.buffer().display_name(); }
|
||||||
}, {
|
}, {
|
||||||
"buffile",
|
"buffile",
|
||||||
[](StringView name, const Context& context)
|
[](StringView name, const Context& context) -> String
|
||||||
{ return context.buffer().name(); }
|
{ return context.buffer().name(); }
|
||||||
}, {
|
}, {
|
||||||
"buflist",
|
"buflist",
|
||||||
|
@ -93,11 +93,11 @@ void register_env_vars()
|
||||||
{ return context.client().get_env_var(name.substr(11_byte)).str(); }
|
{ return context.client().get_env_var(name.substr(11_byte)).str(); }
|
||||||
}, {
|
}, {
|
||||||
"session",
|
"session",
|
||||||
[](StringView name, const Context& context)
|
[](StringView name, const Context& context) -> String
|
||||||
{ return Server::instance().session(); }
|
{ return Server::instance().session(); }
|
||||||
}, {
|
}, {
|
||||||
"client",
|
"client",
|
||||||
[](StringView name, const Context& context)
|
[](StringView name, const Context& context) -> String
|
||||||
{ return context.name(); }
|
{ return context.name(); }
|
||||||
}, {
|
}, {
|
||||||
"cursor_line",
|
"cursor_line",
|
||||||
|
|
|
@ -106,7 +106,7 @@ public:
|
||||||
using Content = std::basic_string<char, std::char_traits<char>,
|
using Content = std::basic_string<char, std::char_traits<char>,
|
||||||
Allocator<char, MemoryDomain::String>>;
|
Allocator<char, MemoryDomain::String>>;
|
||||||
|
|
||||||
String() = default;
|
String() {}
|
||||||
String(const char* content) : m_data(content) {}
|
String(const char* content) : m_data(content) {}
|
||||||
explicit String(char content, CharCount count = 1) : m_data((size_t)(int)count, content) {}
|
explicit String(char content, CharCount count = 1) : m_data((size_t)(int)count, content) {}
|
||||||
explicit String(Codepoint cp, CharCount count = 1)
|
explicit String(Codepoint cp, CharCount count = 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user