summaryrefslogtreecommitdiff
path: root/src/highlighter.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-07-08 11:43:17 +1000
committerMaxime Coste <mawww@kakoune.org>2025-07-08 12:07:33 +1000
commitce1d512a0c1922ab5f43f28e7bae573508c98601 (patch)
tree7af8effd6b00c304cda1c87f657a0014fcdae2ae /src/highlighter.cc
parentfea08fc18d268ace4f843ec2b57cc33e36562098 (diff)
Replace std::unique_ptr with a custom implementation
<memory> is a costly header we can avoid by just implementing UniquePtr ourselves, which is a pretty straightforward in modern C++, this saves around 10% of the compilation time here.
Diffstat (limited to 'src/highlighter.cc')
-rw-r--r--src/highlighter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/highlighter.cc b/src/highlighter.cc
index 7a6b2155..3e253343 100644
--- a/src/highlighter.cc
+++ b/src/highlighter.cc
@@ -35,7 +35,7 @@ Highlighter& Highlighter::get_child(StringView path)
throw runtime_error("this highlighter does not hold children");
}
-void Highlighter::add_child(String, std::unique_ptr<Highlighter>&&, bool)
+void Highlighter::add_child(String, UniquePtr<Highlighter>&&, bool)
{
throw runtime_error("this highlighter does not hold children");
}