diff options
author | Adrian Kummerländer | 2014-04-30 18:48:23 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-04-30 18:48:23 +0200 |
commit | 42a0b31ebc10bea7e205e04c12b590afbcc27b3d (patch) | |
tree | 0545a36ba6288f57db40fe12c4f54af243ea78bf /src/support | |
parent | ddfe25807ef90ddd3d10fd4532875ffdb5d5e9c5 (diff) | |
download | InputXSLT-42a0b31ebc10bea7e205e04c12b590afbcc27b3d.tar InputXSLT-42a0b31ebc10bea7e205e04c12b590afbcc27b3d.tar.gz InputXSLT-42a0b31ebc10bea7e205e04c12b590afbcc27b3d.tar.bz2 InputXSLT-42a0b31ebc10bea7e205e04c12b590afbcc27b3d.tar.lz InputXSLT-42a0b31ebc10bea7e205e04c12b590afbcc27b3d.tar.xz InputXSLT-42a0b31ebc10bea7e205e04c12b590afbcc27b3d.tar.zst InputXSLT-42a0b31ebc10bea7e205e04c12b590afbcc27b3d.zip |
Moved file reading functionality into local functions
* it was moved into functions local to the respective compilation unit to improve readability
** splits DOM tree construction logic from the actual purpose of the external function
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/filesystem_context.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/support/filesystem_context.cc b/src/support/filesystem_context.cc index 6ad682f..d3caf88 100644 --- a/src/support/filesystem_context.cc +++ b/src/support/filesystem_context.cc @@ -35,8 +35,7 @@ void FilesystemContext::iterate( ) const { const boost::filesystem::path directory(this->resolve(path)); - if ( boost::filesystem::exists(directory) && - boost::filesystem::is_directory(directory) ) { + if ( boost::filesystem::is_directory(directory) ) { for ( boost::filesystem::directory_iterator iter(directory); iter != boost::filesystem::directory_iterator(); ++iter ) { |