mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use LeakChecked throughout Beast
This commit is contained in:
@@ -111,7 +111,9 @@ namespace
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class ZipFile::ZipInputStream : public InputStream
|
||||
class ZipFile::ZipInputStream
|
||||
: public InputStream
|
||||
, LeakChecked <ZipInputStream>
|
||||
{
|
||||
public:
|
||||
ZipInputStream (ZipFile& zf, ZipFile::ZipEntryHolder& zei)
|
||||
@@ -208,8 +210,6 @@ private:
|
||||
int headerSize;
|
||||
InputStream* inputStream;
|
||||
ScopedPointer<InputStream> streamToDelete;
|
||||
|
||||
BEAST_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ZipInputStream)
|
||||
};
|
||||
|
||||
|
||||
@@ -442,7 +442,7 @@ Result ZipFile::uncompressEntry (const int index,
|
||||
//=============================================================================
|
||||
extern unsigned long beast_crc32 (unsigned long crc, const unsigned char*, unsigned len);
|
||||
|
||||
class ZipFile::Builder::Item
|
||||
class ZipFile::Builder::Item : LeakChecked <ZipFile::Builder::Item>, Uncopyable
|
||||
{
|
||||
public:
|
||||
Item (const File& f, const int compression, const String& storedPath)
|
||||
@@ -547,8 +547,6 @@ private:
|
||||
target.writeShort ((short) storedPathname.toUTF8().sizeInBytes() - 1);
|
||||
target.writeShort (0); // extra field length
|
||||
}
|
||||
|
||||
BEAST_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Item)
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user