Clang: Cleanup ClangQueryProjectFindFilter test

Change-Id: I8e9246490c8501c71a5f0cc10aa45a0914fdda62
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Marco Bubke
2017-11-29 15:54:52 +01:00
parent cf4b2aec86
commit d755986827

View File

@@ -223,7 +223,7 @@ void ClangQueryProjectFindFilter::SetUp()
std::unique_ptr<ClangRefactoring::SearchHandle> ClangQueryProjectFindFilter::createSearchHandle()
{
std::unique_ptr<ClangRefactoring::SearchHandle> handle(new NiceMock<MockSearchHandle>);
auto handle = std::make_unique<NiceMock<MockSearchHandle>>();
handle->setRefactoringServer(&mockRefactoringServer);
return handle;