diff options
Diffstat (limited to 'libtests/input_source.cc')
-rw-r--r-- | libtests/input_source.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtests/input_source.cc b/libtests/input_source.cc index 5a69f295..9e72bbf6 100644 --- a/libtests/input_source.cc +++ b/libtests/input_source.cc @@ -65,8 +65,8 @@ int main() // Overlap so that the first check() would advance past the start // of the next match memcpy(b + 2037, "potato potato salad ", 20); - PointerHolder<InputSource> is = - new BufferInputSource("test buffer input source", b1.get()); + auto is = PointerHolder<InputSource>( + new BufferInputSource("test buffer input source", b1.get())); Finder f1(is, "salad"); check("find potato salad", true, is->findFirst("potato", 0, 0, f1)); |