Use StringView in write_debug

This commit is contained in:
Maxime Coste 2014-04-30 19:27:38 +01:00
parent c06f986a02
commit bd4df27f2b
2 changed files with 3 additions and 3 deletions

View File

@ -7,11 +7,11 @@
namespace Kakoune
{
void write_debug(const String& str)
void write_debug(StringView str)
{
if (not BufferManager::has_instance())
{
fprintf(stderr, "%s\n", str.c_str());
fprintf(stderr, "%s\n", (const char*)str.zstr());
return;
}

View File

@ -6,7 +6,7 @@
namespace Kakoune
{
void write_debug(const String& str);
void write_debug(StringView str);
}