diff --git a/src/base/bittorrent/torrentcreatorthread.cpp b/src/base/bittorrent/torrentcreatorthread.cpp index bfa8ca83e..c8d19c16e 100644 --- a/src/base/bittorrent/torrentcreatorthread.cpp +++ b/src/base/bittorrent/torrentcreatorthread.cpp @@ -35,8 +35,8 @@ #include #include #include -#include #include +#include #include @@ -44,16 +44,19 @@ #include "base/utils/misc.h" #include "base/utils/string.h" -namespace libt = libtorrent; -using namespace BitTorrent; - -// do not include files and folders whose -// name starts with a . -bool fileFilter(const std::string &f) +namespace { - return !Utils::Fs::fileName(QString::fromStdString(f)).startsWith('.'); + // do not include files and folders whose + // name starts with a . + bool fileFilter(const std::string &f) + { + return !Utils::Fs::fileName(QString::fromStdString(f)).startsWith('.'); + } } +namespace libt = libtorrent; +using namespace BitTorrent; + TorrentCreatorThread::TorrentCreatorThread(QObject *parent) : QThread(parent) , m_private(false)