summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-30 19:27:38 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-30 19:27:38 +0100
commitbd4df27f2b96020e0e87d9594b7dae27ffe43b20 (patch)
treecef040eb19e04ae43d6fb088a60dc509e9728a75 /src/debug.cc
parentc06f986a02a2194880dda3ac560f8c229a4b5906 (diff)
Use StringView in write_debug
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.cc b/src/debug.cc
index 7d68fb5b..6d865013 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -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;
}