src: fixed clang warnings, fixed undefined symbols logs, fixed code convention violations

This commit is contained in:
Eberhard Graether
2014-07-21 01:26:35 +02:00
parent 0c570d54af
commit 0d46de871a
30 changed files with 166 additions and 172 deletions
+5 -5
View File
@@ -1,19 +1,19 @@
#include "utility/FileSystem.h"
#include "boost/filesystem.hpp"
#include "utility/logging/logging.h"
std::vector<std::string> FileSystem::getSourceFilesFromDirectory(
const std::string& path, const std::vector<std::string>& extensions
)
{
){
std::vector<std::string> files;
if (boost::filesystem::is_directory(path))
{
boost::filesystem::recursive_directory_iterator it(path);
boost::filesystem::recursive_directory_iterator endit;
while(it != endit)
while (it != endit)
{
if (boost::filesystem::is_regular_file(*it) && isValidExtension(it->path().string(), extensions))
{
@@ -36,9 +36,9 @@ bool FileSystem::isValidExtension(const std::string& filepath, const std::vector
{
boost::filesystem::path path(filepath);
for(std::string extension : extensions)
for (std::string extension : extensions)
{
if(path.extension() == extension)
if (path.extension() == extension)
{
return true;
}