Update main.cpp

This commit is contained in:
Jack Andersen 2015-06-11 11:04:15 -10:00
parent 270468fb1f
commit 518f246e5b
1 changed files with 2 additions and 2 deletions

View File

@ -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<HECL::ProjectRootPath> rootPath(HECL::SearchForProject(info.cwd));
std::unique_ptr<HECL::Database::Project> project;
if (rootPath)
if (rootPath.get())
{
try
{