Use compiler-generated destructor, move assignment operator and constructor in VBReader and VBWriter classes (#62)
This commit is contained in:
Родитель
6eafc642e4
Коммит
d8645dd6ae
|
@ -92,8 +92,8 @@ namespace DirectX
|
|||
{
|
||||
public:
|
||||
VBReader() noexcept(false);
|
||||
VBReader(VBReader&& moveFrom) noexcept;
|
||||
VBReader& operator= (VBReader&& moveFrom) noexcept;
|
||||
VBReader(VBReader&&) noexcept;
|
||||
VBReader& operator= (VBReader&&) noexcept;
|
||||
|
||||
VBReader(VBReader const&) = delete;
|
||||
VBReader& operator= (VBReader const&) = delete;
|
||||
|
@ -148,8 +148,8 @@ namespace DirectX
|
|||
{
|
||||
public:
|
||||
VBWriter() noexcept(false);
|
||||
VBWriter(VBWriter&& moveFrom) noexcept;
|
||||
VBWriter& operator= (VBWriter&& moveFrom) noexcept;
|
||||
VBWriter(VBWriter&&) noexcept;
|
||||
VBWriter& operator= (VBWriter&&) noexcept;
|
||||
|
||||
VBWriter(VBWriter const&) = delete;
|
||||
VBWriter& operator= (VBWriter const&) = delete;
|
||||
|
|
|
@ -654,27 +654,9 @@ VBReader::VBReader() noexcept(false)
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
// Move constructor.
|
||||
VBReader::VBReader(VBReader&& moveFrom) noexcept
|
||||
: pImpl(std::move(moveFrom.pImpl))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// Move assignment.
|
||||
VBReader& VBReader::operator= (VBReader&& moveFrom) noexcept
|
||||
{
|
||||
pImpl = std::move(moveFrom.pImpl);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
// Public destructor.
|
||||
VBReader::~VBReader()
|
||||
{
|
||||
}
|
||||
|
||||
VBReader::VBReader(VBReader&&) noexcept = default;
|
||||
VBReader& VBReader::operator= (VBReader&&) noexcept = default;
|
||||
VBReader::~VBReader() = default;
|
||||
|
||||
//-------------------------------------------------------------------------------------
|
||||
#if defined(__d3d11_h__) || defined(__d3d11_x_h__)
|
||||
|
|
|
@ -653,26 +653,9 @@ VBWriter::VBWriter() noexcept(false)
|
|||
}
|
||||
|
||||
|
||||
// Move constructor.
|
||||
VBWriter::VBWriter(VBWriter&& moveFrom) noexcept
|
||||
: pImpl(std::move(moveFrom.pImpl))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// Move assignment.
|
||||
VBWriter& VBWriter::operator= (VBWriter&& moveFrom) noexcept
|
||||
{
|
||||
pImpl = std::move(moveFrom.pImpl);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
// Public destructor.
|
||||
VBWriter::~VBWriter()
|
||||
{
|
||||
}
|
||||
|
||||
VBWriter::VBWriter(VBWriter&&) noexcept = default;
|
||||
VBWriter& VBWriter::operator= (VBWriter&&) noexcept = default;
|
||||
VBWriter::~VBWriter() = default;
|
||||
|
||||
//-------------------------------------------------------------------------------------
|
||||
#if defined(__d3d11_h__) || defined(__d3d11_x_h__)
|
||||
|
|
Загрузка…
Ссылка в новой задаче