From 518f246e5ba8596fce77a14cd226027c9c772131 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 11 Jun 2015 11:04:15 -1000 Subject: [PATCH] Update main.cpp --- hecl/driver/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hecl/driver/main.cpp b/hecl/driver/main.cpp index 29abc49d0..70eb20b94 100644 --- a/hecl/driver/main.cpp +++ b/hecl/driver/main.cpp @@ -152,9 +152,9 @@ int main(int argc, const char** argv) } /* Attempt to find hecl project */ - HECL::ProjectRootPath* rootPath = HECL::SearchForProject(info.cwd); + std::unique_ptr rootPath(HECL::SearchForProject(info.cwd)); std::unique_ptr project; - if (rootPath) + if (rootPath.get()) { try {