summaryrefslogtreecommitdiff
path: root/src/diff.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.hh')
-rw-r--r--src/diff.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff.hh b/src/diff.hh
index 2f582b16..bcca655a 100644
--- a/src/diff.hh
+++ b/src/diff.hh
@@ -7,7 +7,7 @@
#include <algorithm>
#include <functional>
-#include <memory>
+#include "unique_ptr.hh"
namespace Kakoune
{
@@ -175,7 +175,7 @@ template<typename IteratorA, typename IteratorB, typename OnDiff, typename Equal
void for_each_diff(IteratorA a, int N, IteratorB b, int M, OnDiff&& on_diff, Equal&& eq = Equal{})
{
const int max = 2 * (N + M) + 1;
- std::unique_ptr<int[]> data(new int[2*max]);
+ UniquePtr<int[]> data(new int[2*max]);
constexpr int cost_limit = 1000;
Diff last{};