mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Use deleted members to prevent copying in Beast (RIPD-268)
This commit is contained in:
committed by
Vinnie Falco
parent
cd97b5beec
commit
60330da25c
@@ -244,7 +244,7 @@ bool File::moveToTrash() const
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class DirectoryIterator::NativeIterator::Pimpl : public Uncopyable
|
||||
class DirectoryIterator::NativeIterator::Pimpl
|
||||
{
|
||||
public:
|
||||
Pimpl (const File& directory, const String& wildCard_)
|
||||
@@ -254,6 +254,9 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
Pimpl (Pimpl const&) = delete;
|
||||
Pimpl& operator= (Pimpl const&) = delete;
|
||||
|
||||
~Pimpl()
|
||||
{
|
||||
if (dir != nullptr)
|
||||
|
||||
Reference in New Issue
Block a user