mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
SF [2851052] Poco::DirectoryIterator copy constructor is broken
added testCreateFile() to the test suite
This commit is contained in:
@@ -66,11 +66,9 @@ DirectoryIterator::DirectoryIterator(const std::string& path): _path(path), _pIm
|
||||
|
||||
DirectoryIterator::DirectoryIterator(const DirectoryIterator& iterator): _path(iterator._path), _pImpl(iterator._pImpl)
|
||||
{
|
||||
_path.makeDirectory();
|
||||
if (_pImpl)
|
||||
{
|
||||
_pImpl->duplicate();
|
||||
_path.setFileName(_pImpl->get());
|
||||
_file = _path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user