Skip to content
Snippets Groups Projects
Commit 07497ced authored by Jan Trávníček's avatar Jan Trávníček
Browse files

use = default to create default constructor

parent 1a8231e6
No related branches found
No related tags found
1 merge request!95Many clang-tidy fixes
......@@ -52,7 +52,7 @@ public:
/**
* \brief Creates a new instance of the empty node.
*/
explicit FormalRegExpEmpty ( );
explicit FormalRegExpEmpty ( ) = default;
 
/**
* @copydoc FormalRegExpElement::clone ( ) const &
......@@ -126,11 +126,6 @@ public:
 
namespace regexp {
 
template < class SymbolType >
FormalRegExpEmpty < SymbolType >::FormalRegExpEmpty ( ) {
// so that default constructor is available
}
template < class SymbolType >
FormalRegExpEmpty < SymbolType > * FormalRegExpEmpty < SymbolType >::clone ( ) const & {
return new FormalRegExpEmpty ( * this );
......
......@@ -52,7 +52,7 @@ public:
/**
* \brief Creates a new instance of the epsilon node.
*/
explicit FormalRegExpEpsilon ( );
explicit FormalRegExpEpsilon ( ) = default;
 
/**
* @copydoc FormalRegExpElement::clone ( ) const &
......@@ -126,11 +126,6 @@ public:
 
namespace regexp {
 
template < class SymbolType >
FormalRegExpEpsilon < SymbolType >::FormalRegExpEpsilon ( ) {
// so that default constructor is available
}
template < class SymbolType >
FormalRegExpEpsilon < SymbolType > * FormalRegExpEpsilon < SymbolType >::clone ( ) const & {
return new FormalRegExpEpsilon ( * this );
......
......@@ -62,7 +62,7 @@ public:
/**
* \brief Creates a new instance of the alternation node. By default it is semantically equivalent to empty regular expression.
*/
explicit UnboundedRegExpAlternation ( );
explicit UnboundedRegExpAlternation ( ) = default;
 
/**
* @copydoc UnboundedRegExpElement::clone ( ) const &
......@@ -170,10 +170,6 @@ public:
 
namespace regexp {
 
template < class SymbolType >
UnboundedRegExpAlternation < SymbolType >::UnboundedRegExpAlternation ( ) {
}
template < class SymbolType >
const ext::ptr_vector < UnboundedRegExpElement < SymbolType > > & UnboundedRegExpAlternation < SymbolType >::getElements ( ) const {
return this->getChildren();
......
......@@ -62,7 +62,7 @@ public:
/**
* \brief Creates a new instance of the concatenation node. By default it is semantically equivalent to epsilon.
*/
explicit UnboundedRegExpConcatenation ( );
explicit UnboundedRegExpConcatenation ( ) = default;
 
/**
* @copydoc UnboundedRegExpElement::clone ( ) const &
......@@ -170,10 +170,6 @@ public:
 
namespace regexp {
 
template < class SymbolType >
UnboundedRegExpConcatenation < SymbolType >::UnboundedRegExpConcatenation ( ) {
}
template < class SymbolType >
const ext::ptr_vector < UnboundedRegExpElement < SymbolType > > & UnboundedRegExpConcatenation < SymbolType >::getElements ( ) const {
return this->getChildren();
......
......@@ -59,7 +59,7 @@ public:
/**
* \brief Creates a new instance of the empty node.
*/
explicit UnboundedRegExpEmpty ( );
explicit UnboundedRegExpEmpty ( ) = default;
 
/**
* @copydoc UnboundedRegExpElement::clone ( ) const &
......@@ -133,11 +133,6 @@ public:
 
namespace regexp {
 
template < class SymbolType >
UnboundedRegExpEmpty < SymbolType >::UnboundedRegExpEmpty ( ) {
// so that default constructor is available
}
template < class SymbolType >
UnboundedRegExpEmpty < SymbolType > * UnboundedRegExpEmpty < SymbolType >::clone ( ) const & {
return new UnboundedRegExpEmpty ( * this );
......
......@@ -59,7 +59,7 @@ public:
/**
* \brief Creates a new instance of the epsilon node.
*/
explicit UnboundedRegExpEpsilon ( );
explicit UnboundedRegExpEpsilon ( ) = default;
 
/**
* @copydoc UnboundedRegExpElement::clone ( ) const &
......@@ -133,11 +133,6 @@ public:
 
namespace regexp {
 
template < class SymbolType >
UnboundedRegExpEpsilon < SymbolType >::UnboundedRegExpEpsilon ( ) {
// so that default constructor is available
}
template < class SymbolType >
UnboundedRegExpEpsilon < SymbolType > * UnboundedRegExpEpsilon < SymbolType >::clone ( ) const & {
return new UnboundedRegExpEpsilon ( * this );
......
......@@ -59,7 +59,7 @@ public:
/**
* \brief Creates a new instance of the empty node.
*/
explicit FormalRTEEmpty ( );
explicit FormalRTEEmpty ( ) = default;
 
/**
* @copydoc FormalRTEElement < SymbolType, RankType >::clone ( ) const &
......@@ -122,11 +122,6 @@ public:
}
};
 
template < class SymbolType, class RankType >
FormalRTEEmpty < SymbolType, RankType >::FormalRTEEmpty ( ) {
// so that default constructor is available
}
template < class SymbolType, class RankType >
FormalRTEEmpty < SymbolType, RankType > * FormalRTEEmpty < SymbolType, RankType >::clone ( ) const & {
return new FormalRTEEmpty ( * this );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment