From 1df71e9b78fd516f9902f42db733f0b02808ad50 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 5 Jan 2016 21:17:42 +0100 Subject: Fix `generate` problem caused by _boost_ update i.e. the directory tree was not correctly created in all circumstances which led to both the `generate` and `write-file` test cases failing. This was combined with some accumulated changes such as the extraction of process context instantiation. --- src/function/read_directory.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/function/read_directory.cc') diff --git a/src/function/read_directory.cc b/src/function/read_directory.cc index d630e5d..9dfc211 100644 --- a/src/function/read_directory.cc +++ b/src/function/read_directory.cc @@ -9,11 +9,11 @@ DomDocumentCache::document_ptr FunctionReadDirectory::constructDocument( const FilesystemContext&, boost::filesystem::path directoryPath ) const { - DomDocumentCache::document_ptr domDocument( + DomDocumentCache::document_ptr domDocument{ DomDocumentCache::createDocument("content") - ); + }; - ResultNodeFacade result(domDocument.get(), "directory"); + ResultNodeFacade result{domDocument.get(), "directory"}; result.setAttribute("path", directoryPath.string()); if ( boost::filesystem::is_directory(directoryPath) ) { -- cgit v1.2.3