shorten special class members declarations
This commit is contained in:
parent
5ef76b0212
commit
6a7550a6ba
|
|
@ -148,10 +148,7 @@ private:
|
|||
public:
|
||||
|
||||
SelectionList() = default;
|
||||
SelectionList( const SelectionList& ) = delete;
|
||||
SelectionList( SelectionList&& ) noexcept = delete;
|
||||
SelectionList& operator=( const SelectionList& ) = delete;
|
||||
SelectionList& operator=( SelectionList&& ) noexcept = delete;
|
||||
|
||||
iterator begin(){
|
||||
return m_selection.begin();
|
||||
|
|
|
|||
|
|
@ -774,11 +774,7 @@ public:
|
|||
m_instance.get().setChildSelectedChangedCallback( Callback() );
|
||||
ASSERT_MESSAGE( empty(), "GraphTreeNode::~GraphTreeNode: memory leak" );
|
||||
}
|
||||
GraphTreeNode() = delete;
|
||||
GraphTreeNode( const GraphTreeNode& ) = delete;
|
||||
GraphTreeNode( GraphTreeNode&& ) noexcept = delete;
|
||||
GraphTreeNode& operator=( const GraphTreeNode& ) = delete;
|
||||
GraphTreeNode& operator=( GraphTreeNode&& ) noexcept = delete;
|
||||
|
||||
iterator begin(){
|
||||
return m_childnodes.begin();
|
||||
|
|
|
|||
|
|
@ -31,10 +31,8 @@
|
|||
|
||||
class void_ptr
|
||||
{
|
||||
private:
|
||||
void *ptr;
|
||||
public:
|
||||
void_ptr() = delete;
|
||||
void_ptr( void *p ) : ptr( p ) {}
|
||||
template<typename T>
|
||||
operator T*() const {
|
||||
|
|
|
|||
|
|
@ -51,11 +51,7 @@ struct script_t
|
|||
end( start + size ),
|
||||
line( 1 )
|
||||
{}
|
||||
script_t() = delete;
|
||||
script_t( const script_t& ) = delete;
|
||||
script_t( script_t&& ) noexcept = delete;
|
||||
script_t& operator=( const script_t& ) = delete;
|
||||
script_t& operator=( script_t&& ) noexcept = delete;
|
||||
~script_t(){
|
||||
free( buffer );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,12 +19,11 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_STRINGFIXESIZE_H )
|
||||
#define INCLUDED_STRINGFIXESIZE_H
|
||||
#pragma once
|
||||
|
||||
#include "stream/textstream.h"
|
||||
#include "string/string.h"
|
||||
#include "cmdlib.h"
|
||||
#include "inout.h"
|
||||
|
||||
|
||||
/// \brief A TextOutputStream which writes to a null terminated fixed length char array.
|
||||
|
|
@ -41,10 +40,6 @@ public:
|
|||
explicit StringFixedSize( const char* string ){
|
||||
operator()( string );
|
||||
}
|
||||
StringFixedSize( const StringFixedSize& ) = default;
|
||||
StringFixedSize( StringFixedSize&& ) noexcept = default;
|
||||
StringFixedSize& operator=( const StringFixedSize& ) = default;
|
||||
StringFixedSize& operator=( StringFixedSize&& ) noexcept = default;
|
||||
std::size_t write( const char* buffer, std::size_t length ) override {
|
||||
if( m_length + length < SIZE ){
|
||||
for( auto i = length; i != 0; --i )
|
||||
|
|
@ -91,6 +86,3 @@ inline StringFixedSize<SIZE>& operator<<( StringFixedSize<SIZE>& ostream, const
|
|||
}
|
||||
|
||||
using String64 = StringFixedSize<64>;
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ struct VFS_PAK
|
|||
unzFile zipfile;
|
||||
const CopiedString unzFilePath;
|
||||
VFS_PAK( unzFile zipfile, const char *unzFilePath ) : zipfile( zipfile ), unzFilePath( unzFilePath ) {};
|
||||
VFS_PAK( VFS_PAK&& ) noexcept = delete;
|
||||
~VFS_PAK(){
|
||||
unzClose( zipfile );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -425,7 +425,6 @@ struct image_t
|
|||
height(height ),
|
||||
pixels( pixels )
|
||||
{}
|
||||
image_t( const image_t& ) = delete;
|
||||
image_t( image_t&& other ) noexcept :
|
||||
name( std::move( other.name ) ),
|
||||
filename( std::move( other.filename ) ),
|
||||
|
|
@ -433,8 +432,6 @@ struct image_t
|
|||
height( other.height ),
|
||||
pixels( std::exchange( other.pixels, nullptr ) )
|
||||
{}
|
||||
image_t& operator=( const image_t& ) = delete;
|
||||
image_t& operator=( image_t&& ) noexcept = delete;
|
||||
~image_t(){
|
||||
free( pixels );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,11 +48,6 @@ struct metaVertex_t : public bspDrawVert_t
|
|||
std::list<metaVertex_t> *m_metaVertexGroup; // reference to own group of vertices with equal .xyz position
|
||||
|
||||
metaVertex_t() = default;
|
||||
metaVertex_t( const metaVertex_t& ) = default;
|
||||
metaVertex_t( metaVertex_t&& ) noexcept = default;
|
||||
metaVertex_t& operator=( const metaVertex_t& ) = default;
|
||||
metaVertex_t& operator=( metaVertex_t&& ) noexcept = default;
|
||||
|
||||
metaVertex_t( const bspDrawVert_t& vert ) : bspDrawVert_t( vert ){}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user