Use StringView in write_debug
This commit is contained in:
parent
c06f986a02
commit
bd4df27f2b
|
@ -7,11 +7,11 @@
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
void write_debug(const String& str)
|
void write_debug(StringView str)
|
||||||
{
|
{
|
||||||
if (not BufferManager::has_instance())
|
if (not BufferManager::has_instance())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s\n", str.c_str());
|
fprintf(stderr, "%s\n", (const char*)str.zstr());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
void write_debug(const String& str);
|
void write_debug(StringView str);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user