mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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
@@ -735,7 +735,6 @@ bool File::createLink (const String& description, const File& linkFileToCreate)
|
||||
//==============================================================================
|
||||
class DirectoryIterator::NativeIterator::Pimpl
|
||||
: LeakChecked <DirectoryIterator::NativeIterator::Pimpl>
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
Pimpl (const File& directory, const String& wildCard)
|
||||
@@ -744,6 +743,9 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
Pimpl (Pimpl const&) = delete;
|
||||
Pimpl& operator= (Pimpl const&) = delete;
|
||||
|
||||
~Pimpl()
|
||||
{
|
||||
if (handle != INVALID_HANDLE_VALUE)
|
||||
|
||||
Reference in New Issue
Block a user