Commit a0324717 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Rename FileSystemDefaultFactory -> FileSystemFactory

parent 467483d7
......@@ -111,7 +111,7 @@ void MediaLibrary::setFsFactory(std::shared_ptr<factory::IFileSystem> fsFactory)
bool MediaLibrary::initialize( const std::string& dbPath, const std::string& snapshotPath, IMediaLibraryCb* mlCallback )
{
if ( m_fsFactory == nullptr )
m_fsFactory.reset( new factory::FileSystemDefaultFactory );
m_fsFactory.reset( new factory::FileSystemFactory );
m_snapshotPath = snapshotPath;
m_callback = mlCallback;
m_dbConnection.reset( new SqliteConnection( dbPath ) );
......
......@@ -38,7 +38,7 @@ FsDiscoverer::FsDiscoverer( std::shared_ptr<factory::IFileSystem> fsFactory, Med
if ( fsFactory != nullptr )
m_fsFactory = fsFactory;
else
m_fsFactory.reset( new factory::FileSystemDefaultFactory );
m_fsFactory.reset( new factory::FileSystemFactory );
}
bool FsDiscoverer::discover( const std::string &entryPoint )
......
......@@ -37,12 +37,12 @@
namespace factory
{
std::shared_ptr<fs::IDirectory> FileSystemDefaultFactory::createDirectory( const std::string& path )
std::shared_ptr<fs::IDirectory> FileSystemFactory::createDirectory( const std::string& path )
{
return std::shared_ptr<fs::IDirectory>( new fs::Directory( path ) );
}
std::unique_ptr<fs::IFile> FileSystemDefaultFactory::createFile(const std::string& fileName)
std::unique_ptr<fs::IFile> FileSystemFactory::createFile(const std::string& fileName)
{
return std::unique_ptr<fs::IFile>( new fs::File( fileName ) );
}
......
......@@ -26,7 +26,7 @@
namespace factory
{
class FileSystemDefaultFactory : public IFileSystem
class FileSystemFactory : public IFileSystem
{
public:
virtual std::shared_ptr<fs::IDirectory> createDirectory( const std::string& path ) override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment