diff --git a/alib2abstraction/src/abstraction/AnyaryOperationAbstraction.hpp b/alib2abstraction/src/abstraction/AnyaryOperationAbstraction.hpp index a16bc609354d0610bd0affa13df41096412b2f08..eeb5de007eb8b809c375fdfd1237ff90b151ba7a 100644 --- a/alib2abstraction/src/abstraction/AnyaryOperationAbstraction.hpp +++ b/alib2abstraction/src/abstraction/AnyaryOperationAbstraction.hpp @@ -48,8 +48,7 @@ private: } public: - AnyaryOperationAbstraction ( ) { - } + AnyaryOperationAbstraction ( ) = default; bool inputsAttached ( ) const override { auto attached_lambda = [ ] ( const std::pair < std::shared_ptr < OperationAbstraction >, bool > & param ) { diff --git a/alib2abstraction/src/abstraction/OperationAbstraction.hpp b/alib2abstraction/src/abstraction/OperationAbstraction.hpp index 9ab0e32e4866ff87eff4adde5e783aa5bec05dd6..64686445df5ff9481e9ec0c52a09381329992610 100644 --- a/alib2abstraction/src/abstraction/OperationAbstraction.hpp +++ b/alib2abstraction/src/abstraction/OperationAbstraction.hpp @@ -25,8 +25,7 @@ public: virtual bool attachInput ( const std::shared_ptr < OperationAbstraction > & input, unsigned index, bool move, bool checkInput ) = 0; virtual bool detachInput ( unsigned index ) = 0; - virtual ~OperationAbstraction ( ) noexcept { - } + virtual ~OperationAbstraction ( ) noexcept = default; virtual bool inputsAttached ( ) const = 0; virtual bool eval ( ) = 0; diff --git a/alib2abstraction/src/registry/AlgorithmRegistry.hpp b/alib2abstraction/src/registry/AlgorithmRegistry.hpp index 153a4fec84902c7b060453460d80e5b51df0f06d..344644bd9523791aec398da41b78ab52deae1124 100644 --- a/alib2abstraction/src/registry/AlgorithmRegistry.hpp +++ b/alib2abstraction/src/registry/AlgorithmRegistry.hpp @@ -39,8 +39,7 @@ public: Entry ( AlgorithmFullInfo entryInfo ) : m_entryInfo ( std::move ( entryInfo ) ), m_documentation ( "Documentation not avaiable." ) { } - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; @@ -66,8 +65,7 @@ private: MemberImpl ( std::array < std::string, sizeof ... ( Params ) > paramNames, std::function < Return ( typename std::remove_reference < ObjectType >::type *, Params ... ) > callback ) : Entry ( AlgorithmFullInfo::methodEntryInfo < ObjectType, Return, Params ... > ( std::move ( paramNames ) ) ), m_callback ( callback ) { } - virtual ~MemberImpl ( ) { - } + virtual ~MemberImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; @@ -80,8 +78,7 @@ private: EntryImpl ( AlgorithmCategories::AlgorithmCategory category, std::array < std::string, sizeof ... ( Params ) > paramNames, std::function < Return ( Params ... ) > callback ) : Entry ( AlgorithmFullInfo::algorithmEntryInfo < Return, Params ... > ( category, std::move ( paramNames ) ) ), m_callback ( callback ) { } - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; @@ -94,8 +91,7 @@ private: WrapperImpl ( std::array < std::string, sizeof ... ( Params ) > paramNames, std::function < std::shared_ptr < abstraction::OperationAbstraction > ( Params ... ) > wrapperFinder ) : Entry ( AlgorithmFullInfo::wrapperEntryInfo < Return, Params ... > ( std::move ( paramNames ) ) ), m_wrapperFinder ( wrapperFinder ) { } - virtual ~WrapperImpl ( ) { - } + virtual ~WrapperImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; diff --git a/alib2abstraction/src/registry/CastRegistry.hpp b/alib2abstraction/src/registry/CastRegistry.hpp index e0c12e1fb02efab6c9a1787ae370e93d68598c4f..6e4271517e0bded796d328b4a42d5ad6c7b41f3b 100644 --- a/alib2abstraction/src/registry/CastRegistry.hpp +++ b/alib2abstraction/src/registry/CastRegistry.hpp @@ -32,8 +32,7 @@ public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; bool isExplicit ( ) { return m_isExplicit; @@ -59,8 +58,7 @@ private: AlgorithmEntryImpl ( std::function < Return ( Param ) > callback, bool isExplicit ) : Entry ( isExplicit ), m_callback ( callback ) { } - virtual ~AlgorithmEntryImpl ( ) { - } + virtual ~AlgorithmEntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; diff --git a/alib2abstraction/src/registry/ContainerRegistry.hpp b/alib2abstraction/src/registry/ContainerRegistry.hpp index 717d7e09438e31a65520f3d2ca237414ce377bf8..7e1430940189b0ac0799ede2713953f64f246c8e 100644 --- a/alib2abstraction/src/registry/ContainerRegistry.hpp +++ b/alib2abstraction/src/registry/ContainerRegistry.hpp @@ -27,8 +27,7 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: @@ -37,8 +36,7 @@ private: public: std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; - virtual ~SetEntryImpl ( ) { - } + virtual ~SetEntryImpl ( ) = default; }; static ext::map < std::string, ext::list < ext::pair < std::string, std::unique_ptr < Entry > > > > & getEntries ( ); diff --git a/alib2abstraction/src/registry/ImmediateRegistry.hpp b/alib2abstraction/src/registry/ImmediateRegistry.hpp index 7a9a9a25203049a69b11081e4a71ed91882b43ad..9623961e007c1b2b2ba163b3a24f8ed64a954ba2 100644 --- a/alib2abstraction/src/registry/ImmediateRegistry.hpp +++ b/alib2abstraction/src/registry/ImmediateRegistry.hpp @@ -24,19 +24,16 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( std::string value ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: template < class Result > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( std::string value ) const override; }; diff --git a/alib2abstraction/src/registry/NormalizeRegistry.hpp b/alib2abstraction/src/registry/NormalizeRegistry.hpp index d249607de3b1915bd5825a7481c89dd76038d3ee..f0afc3d60c880b3a252f3496a295909d2c3a1631 100644 --- a/alib2abstraction/src/registry/NormalizeRegistry.hpp +++ b/alib2abstraction/src/registry/NormalizeRegistry.hpp @@ -27,8 +27,7 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; @@ -36,11 +35,9 @@ private: template < class Param > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; diff --git a/alib2abstraction/src/registry/ValuePrinterRegistry.hpp b/alib2abstraction/src/registry/ValuePrinterRegistry.hpp index d46d2c4d8caf9a2774cfccbec1866edf990e4a19..7c0fd3eb20132fe9c6efc3870de0409786723ac6 100644 --- a/alib2abstraction/src/registry/ValuePrinterRegistry.hpp +++ b/alib2abstraction/src/registry/ValuePrinterRegistry.hpp @@ -23,8 +23,7 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( std::ostream & os ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; @@ -32,11 +31,9 @@ private: template < class Param > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( std::ostream & os ) const override; }; diff --git a/alib2cli/src/ast/Arg.h b/alib2cli/src/ast/Arg.h index a8b7941b44b0a60e46ded11ef0f27b5f838bb339..97c732a708f514fae55ff1119cc162a2c6f0dac2 100644 --- a/alib2cli/src/ast/Arg.h +++ b/alib2cli/src/ast/Arg.h @@ -7,8 +7,7 @@ namespace cli { class Arg { public: - virtual ~Arg ( ) noexcept { - } + virtual ~Arg ( ) noexcept = default; virtual std::string eval ( Environment & environment ) const = 0; }; diff --git a/alib2cli/src/ast/Option.h b/alib2cli/src/ast/Option.h index 48a1f21691d89d3164c90047fb51637109961fde..9abaf3ca0b8b1d2cedff4f2a416dee99c916901a 100644 --- a/alib2cli/src/ast/Option.h +++ b/alib2cli/src/ast/Option.h @@ -5,8 +5,7 @@ namespace cli { class Option { public: - virtual ~Option ( ) noexcept { - } + virtual ~Option ( ) noexcept = default; }; } /* namespace cli */ diff --git a/alib2cli/src/ast/Statement.h b/alib2cli/src/ast/Statement.h index 5fab817158a2f6bea71c3895388a3f02ea42d097..cffb0e994e8a3f472af9db310030710d33675317 100644 --- a/alib2cli/src/ast/Statement.h +++ b/alib2cli/src/ast/Statement.h @@ -9,8 +9,7 @@ namespace cli { class Statement : public std::enable_shared_from_this < Statement > { public: - virtual ~Statement ( ) noexcept { - } + virtual ~Statement ( ) noexcept = default; virtual std::shared_ptr < abstraction::OperationAbstraction > translateAndEval ( const std::shared_ptr < abstraction::OperationAbstraction > & prev, Environment & environment ) const = 0; diff --git a/alib2cli/src/ast/statements/ResultPrintStatement.h b/alib2cli/src/ast/statements/ResultPrintStatement.h index 07cf9fd4f9f6727b0413f5a2a0cf640d4a5d1904..54a3fe4f5797e08cad2548647edbe1b6f7891bee 100644 --- a/alib2cli/src/ast/statements/ResultPrintStatement.h +++ b/alib2cli/src/ast/statements/ResultPrintStatement.h @@ -9,8 +9,7 @@ namespace cli { class ResultPrintStatement final : public Statement { public: - ResultPrintStatement ( ) { - } + ResultPrintStatement ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > translateAndEval ( const std::shared_ptr < abstraction::OperationAbstraction > & prev, Environment & ) const override { std::shared_ptr < abstraction::OperationAbstraction > res = abstraction::Registry::getValuePrinterAbstraction ( prev->getReturnType ( ), common::Streams::out ); diff --git a/alib2cli/src/command/Command.h b/alib2cli/src/command/Command.h index 3c2b6b581c4270d7970ae84242f345c241e9e5d8..5f248d4e9a9d8f238479f91879fa4f1d14b4a36d 100644 --- a/alib2cli/src/command/Command.h +++ b/alib2cli/src/command/Command.h @@ -14,8 +14,7 @@ public: ERROR }; - virtual ~Command ( ) noexcept { - } + virtual ~Command ( ) noexcept = default; virtual Command::Result run ( Environment & environment ) const = 0; }; diff --git a/alib2cli/src/environment/Environment.h b/alib2cli/src/environment/Environment.h index 3bb565188f16acaf636b63c2df0bd8adb5895c6e..a51e4eefeca04af85a1134f927ea0ef114a75b49 100644 --- a/alib2cli/src/environment/Environment.h +++ b/alib2cli/src/environment/Environment.h @@ -37,8 +37,7 @@ class Environment { } public: - Environment ( ) { - } + Environment ( ) = default; Environment ( std::unique_ptr < Environment > upper ) : m_upper ( std::move ( upper ) ) { } diff --git a/alib2cli/src/registry/InputFileRegistry.hpp b/alib2cli/src/registry/InputFileRegistry.hpp index 248e0b03fbbbe8fdc9d706ec5b16b6a7d9b8f24c..dd734c67914db8e60d33f244388ea7d798ae9d48 100644 --- a/alib2cli/src/registry/InputFileRegistry.hpp +++ b/alib2cli/src/registry/InputFileRegistry.hpp @@ -23,8 +23,7 @@ class InputFileRegistry { public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( const std::string & type, const ext::vector < std::string > & templateParams ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; class EntryImpl : public Entry { @@ -33,8 +32,7 @@ class InputFileRegistry { EntryImpl ( std::shared_ptr < abstraction::OperationAbstraction > ( * callback ) ( const std::string & type, const ext::vector < std::string > & templateParams ) ) : m_callback ( callback ) { } - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( const std::string & type, const ext::vector < std::string > & templateParams ) const override; }; diff --git a/alib2cli/src/registry/OutputFileRegistry.hpp b/alib2cli/src/registry/OutputFileRegistry.hpp index c01e5d7d1cbda85af6b8f2c3643d91c55788ac90..2efc3e3216c26ae7c6ec79af41d89136542a776d 100644 --- a/alib2cli/src/registry/OutputFileRegistry.hpp +++ b/alib2cli/src/registry/OutputFileRegistry.hpp @@ -23,8 +23,7 @@ class OutputFileRegistry { public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( const std::string & typehint ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; class EntryImpl : public Entry { @@ -33,8 +32,7 @@ class OutputFileRegistry { EntryImpl ( std::shared_ptr < abstraction::OperationAbstraction > ( * callback ) ( const std::string & typehint ) ) : m_callback ( callback ) { } - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( const std::string & typehint ) const override; }; diff --git a/alib2common/src/core/components.hpp b/alib2common/src/core/components.hpp index c34dd2ad08cb04a0aa7ce66639c9f92a91c0582f..756b01de572223ac8e7d340fdbc5e56d80772eec 100644 --- a/alib2common/src/core/components.hpp +++ b/alib2common/src/core/components.hpp @@ -208,8 +208,7 @@ public: /** * Allow less initialization values then number of components. They need to allow to be defaulty constructed then. */ - Components ( ) { - } + Components ( ) = default; /** * Construct an alphabet pack from two alphabets. @@ -255,8 +254,7 @@ public: /** * Allow less initialization values then number of components. They need to allow to be defaulty constructed then. */ - Components ( ) { - } + Components ( ) = default; /** * Construct an alphabet pack from two alphabets. @@ -302,8 +300,7 @@ public: /** * Allow less initialization values then number of components. They need to allow to be defaulty constructed then. */ - Components ( ) { - } + Components ( ) = default; /** * Construct an alphabet pack from two alphabets. diff --git a/alib2common/src/core/components/setComponents.hpp b/alib2common/src/core/components/setComponents.hpp index d2a55da17a663c6630ebc97f0cd2c54bfa9e77fc..24dd227e0d065fb088cfae1684f95e4465681fc6 100644 --- a/alib2common/src/core/components/setComponents.hpp +++ b/alib2common/src/core/components/setComponents.hpp @@ -117,8 +117,7 @@ public: /** * Constructs a empty set. */ - SetComponent ( ) { - } + SetComponent ( ) = default; /** * Adds an elements to the set. @@ -233,8 +232,7 @@ public: /** * Allow default construction of this component. */ - Component ( ) { - } + Component ( ) = default; /** * Register this component's accessors to abstraction diff --git a/alib2common/src/object/Void.cpp b/alib2common/src/object/Void.cpp index 4e50868afcfb0092b75678603e2bc3c03e15f658..66e17264f8a2d9e7e23fc31b7d136bb2ceb7d0fd 100644 --- a/alib2common/src/object/Void.cpp +++ b/alib2common/src/object/Void.cpp @@ -11,9 +11,7 @@ namespace object { -Void::Void() { - -} +Void::Void() = default; int Void::compare(const Void&) const { return 0; diff --git a/alib2data/src/alphabet/BarSymbol.cpp b/alib2data/src/alphabet/BarSymbol.cpp index 38f655714fee5730cb7791852f727bd20ef5520b..f02672e1b827651a6464ef01d4634bb55823f636 100644 --- a/alib2data/src/alphabet/BarSymbol.cpp +++ b/alib2data/src/alphabet/BarSymbol.cpp @@ -13,9 +13,7 @@ namespace alphabet { -BarSymbol::BarSymbol() { - -} +BarSymbol::BarSymbol() = default; int BarSymbol::compare(const BarSymbol&) const { return 0; diff --git a/alib2data/src/alphabet/BlankSymbol.cpp b/alib2data/src/alphabet/BlankSymbol.cpp index 0cb8c18fc2fa85ef1d040d3e744c255387db2f9e..d44ad8caf912bb107b529238fb1c500693f5f174 100644 --- a/alib2data/src/alphabet/BlankSymbol.cpp +++ b/alib2data/src/alphabet/BlankSymbol.cpp @@ -13,9 +13,7 @@ namespace alphabet { -BlankSymbol::BlankSymbol() { - -} +BlankSymbol::BlankSymbol() = default; int BlankSymbol::compare(const BlankSymbol&) const { return 0; diff --git a/alib2data/src/alphabet/BottomOfTheStackSymbol.cpp b/alib2data/src/alphabet/BottomOfTheStackSymbol.cpp index cd39f89daa9ecd1bbeed7e9a08c34b875c2bf36b..95bafebc9ad99f8d632b55f3b01de1996b9e24f2 100644 --- a/alib2data/src/alphabet/BottomOfTheStackSymbol.cpp +++ b/alib2data/src/alphabet/BottomOfTheStackSymbol.cpp @@ -13,9 +13,7 @@ namespace alphabet { -BottomOfTheStackSymbol::BottomOfTheStackSymbol() { - -} +BottomOfTheStackSymbol::BottomOfTheStackSymbol() = default; int BottomOfTheStackSymbol::compare(const BottomOfTheStackSymbol&) const { return 0; diff --git a/alib2data/src/alphabet/EndSymbol.cpp b/alib2data/src/alphabet/EndSymbol.cpp index e46c4a121ba1c24ffe8e4ebbe8cdc07f3c8d2ca0..f57613f3cc9f014a8d50279a37a050be7a9d5a2c 100644 --- a/alib2data/src/alphabet/EndSymbol.cpp +++ b/alib2data/src/alphabet/EndSymbol.cpp @@ -13,9 +13,7 @@ namespace alphabet { -EndSymbol::EndSymbol() { - -} +EndSymbol::EndSymbol() = default; int EndSymbol::compare(const EndSymbol&) const { return 0; diff --git a/alib2data/src/alphabet/InitialSymbol.cpp b/alib2data/src/alphabet/InitialSymbol.cpp index 66b7ff87f01887680993de15e6387cf7eb8e0ba1..c4b99503c013e143e369605008a21c7fa9a4d769 100644 --- a/alib2data/src/alphabet/InitialSymbol.cpp +++ b/alib2data/src/alphabet/InitialSymbol.cpp @@ -13,9 +13,7 @@ namespace alphabet { -InitialSymbol::InitialSymbol() { - -} +InitialSymbol::InitialSymbol() = default; int InitialSymbol::compare(const InitialSymbol&) const { return 0; diff --git a/alib2data/src/alphabet/StartSymbol.cpp b/alib2data/src/alphabet/StartSymbol.cpp index ed87c77a49fb133b70120b970bede096dae75820..7aa6e0eaa106333819b1231a53752d7afb9be12b 100644 --- a/alib2data/src/alphabet/StartSymbol.cpp +++ b/alib2data/src/alphabet/StartSymbol.cpp @@ -13,9 +13,7 @@ namespace alphabet { -StartSymbol::StartSymbol() { - -} +StartSymbol::StartSymbol() = default; int StartSymbol::compare(const StartSymbol&) const { return 0; diff --git a/alib2data/src/alphabet/VariablesBarSymbol.cpp b/alib2data/src/alphabet/VariablesBarSymbol.cpp index eec78dab1a8aa84ceb6f2e071dcea120df7afb95..d21d0b6d32718ef00929d3c3c8ffe1966cf9f762 100644 --- a/alib2data/src/alphabet/VariablesBarSymbol.cpp +++ b/alib2data/src/alphabet/VariablesBarSymbol.cpp @@ -13,8 +13,7 @@ namespace alphabet { -VariablesBarSymbol::VariablesBarSymbol ( ) { -} +VariablesBarSymbol::VariablesBarSymbol ( ) = default; int VariablesBarSymbol::compare ( const VariablesBarSymbol & ) const { return 0; diff --git a/alib2data/src/alphabet/WildcardSymbol.cpp b/alib2data/src/alphabet/WildcardSymbol.cpp index 4c596228a06576b00ae7fd3f8c9a8af36a38a82a..fbf67b813a60caa7440cc950b474a56b0422c7c8 100644 --- a/alib2data/src/alphabet/WildcardSymbol.cpp +++ b/alib2data/src/alphabet/WildcardSymbol.cpp @@ -13,9 +13,7 @@ namespace alphabet { -WildcardSymbol::WildcardSymbol() { - -} +WildcardSymbol::WildcardSymbol() = default; int WildcardSymbol::compare(const WildcardSymbol&) const { return 0; diff --git a/alib2data/src/common/symbol_or_epsilon.hpp b/alib2data/src/common/symbol_or_epsilon.hpp index b58ead14eb273ccef7f9009a004397c36025954a..b039ffbe68250db72feaabbd2f743c4de45c26e9 100644 --- a/alib2data/src/common/symbol_or_epsilon.hpp +++ b/alib2data/src/common/symbol_or_epsilon.hpp @@ -34,8 +34,7 @@ public: explicit symbol_or_epsilon ( SymbolType symbol ) : m_symbol ( std::move ( symbol ) ) { } - explicit symbol_or_epsilon ( ) { - } + explicit symbol_or_epsilon ( ) = default; /** * @return name of the symbol diff --git a/alib2data/src/label/FailStateLabel.cpp b/alib2data/src/label/FailStateLabel.cpp index 41c99ba328498e6a1c0f22585516b914ff543565..f01c6f4cc693a227049844bba8ef59d188c58229 100644 --- a/alib2data/src/label/FailStateLabel.cpp +++ b/alib2data/src/label/FailStateLabel.cpp @@ -13,9 +13,7 @@ namespace label { -FailStateLabel::FailStateLabel() { - -} +FailStateLabel::FailStateLabel() = default; int FailStateLabel::compare(const FailStateLabel&) const { return 0; diff --git a/alib2data/src/label/FinalStateLabel.cpp b/alib2data/src/label/FinalStateLabel.cpp index 08053234d57674e8c10a374cad0fc79810647066..683b8592f2a711ec49d56383e821ab9bc912518e 100644 --- a/alib2data/src/label/FinalStateLabel.cpp +++ b/alib2data/src/label/FinalStateLabel.cpp @@ -13,8 +13,7 @@ namespace label { -FinalStateLabel::FinalStateLabel() { -} +FinalStateLabel::FinalStateLabel() = default; int FinalStateLabel::compare(const FinalStateLabel&) const { return 0; diff --git a/alib2data/src/label/InitialStateLabel.cpp b/alib2data/src/label/InitialStateLabel.cpp index 96e6390cd3007c3da0ddd6798bdc92bae3939ae5..ed9fe64a19aff72a0687fd9bf64176d6d17a2676 100644 --- a/alib2data/src/label/InitialStateLabel.cpp +++ b/alib2data/src/label/InitialStateLabel.cpp @@ -13,9 +13,7 @@ namespace label { -InitialStateLabel::InitialStateLabel() { - -} +InitialStateLabel::InitialStateLabel() = default; int InitialStateLabel::compare(const InitialStateLabel&) const { return 0; diff --git a/alib2graph_data/src/edge/EdgeBase.hpp b/alib2graph_data/src/edge/EdgeBase.hpp index 0ac4c1fa69362258b89c3446eb53451c64ca433a..358000e3cfd356c164e5d1eb4c24e2a1d87a46af 100644 --- a/alib2graph_data/src/edge/EdgeBase.hpp +++ b/alib2graph_data/src/edge/EdgeBase.hpp @@ -19,8 +19,7 @@ namespace edge { */ class EdgeBase : public ext::CompareOperators < EdgeBase > { public: - virtual ~EdgeBase ( ) noexcept { - } + virtual ~EdgeBase ( ) noexcept = default; /** * \brief Comparison helper method evaluating allowing possibly deeper comparison of this with other class of the same type. diff --git a/alib2graph_data/src/graph/GraphBase.hpp b/alib2graph_data/src/graph/GraphBase.hpp index 5412aa6f04a88a6d71cc4cd0303f3071ac3dba2c..924ca8551c7c6b9c70c93c31941159737b51cb28 100644 --- a/alib2graph_data/src/graph/GraphBase.hpp +++ b/alib2graph_data/src/graph/GraphBase.hpp @@ -19,8 +19,7 @@ namespace graph { */ class GraphBase : public ext::CompareOperators < GraphBase > { public: - virtual ~GraphBase ( ) noexcept { - } + virtual ~GraphBase ( ) noexcept = default; /** * \brief Comparison helper method evaluating allowing possibly deeper comparison of this with other class of the same type. diff --git a/alib2graph_data/src/grid/GridBase.hpp b/alib2graph_data/src/grid/GridBase.hpp index eb51852a268b862a22e07c0b1c88938d10d7f18c..87be28850e7566375119f49739be468319662f0f 100644 --- a/alib2graph_data/src/grid/GridBase.hpp +++ b/alib2graph_data/src/grid/GridBase.hpp @@ -19,8 +19,7 @@ namespace grid { */ class GridBase : public ext::CompareOperators < GridBase > { public: - virtual ~GridBase ( ) noexcept { - } + virtual ~GridBase ( ) noexcept = default; /** * \brief Comparison helper method evaluating allowing possibly deeper comparison of this with other class of the same type. diff --git a/alib2graph_data/src/node/NodeBase.hpp b/alib2graph_data/src/node/NodeBase.hpp index 30e53eb192db95d7e154b19af7076421fde167e7..cdf377cc6e7672be3f2cfdce41db64f777972ae3 100644 --- a/alib2graph_data/src/node/NodeBase.hpp +++ b/alib2graph_data/src/node/NodeBase.hpp @@ -19,8 +19,7 @@ namespace node { */ class NodeBase : public ext::CompareOperators < NodeBase > { public: - virtual ~NodeBase ( ) noexcept { - } + virtual ~NodeBase ( ) noexcept = default; /** * \brief Comparison helper method evaluating allowing possibly deeper comparison of this with other class of the same type. diff --git a/alib2gui/src/MainWindow.cpp b/alib2gui/src/MainWindow.cpp index 3ee58e62028a293741266739d48f176afac9eafa..e59a9906a1bd09b6b27e39f6b02fad2cf552df0b 100644 --- a/alib2gui/src/MainWindow.cpp +++ b/alib2gui/src/MainWindow.cpp @@ -47,9 +47,7 @@ MainWindow::MainWindow() this->clearScene(); } -MainWindow::~MainWindow ( ) { - -} +MainWindow::~MainWindow ( ) = default; void MainWindow::displayError(const QString& text) const { QMessageBox::critical(ui->graphicsView, "Error", text, QMessageBox::Close); diff --git a/alib2measure/src/allocator/StealthAllocator.hpp b/alib2measure/src/allocator/StealthAllocator.hpp index 9926f10392f0b6593f4f6d539c7b116639bd1386..fdd841a01cb89d4abb53f7e3cba9470dc68ef7a4 100644 --- a/alib2measure/src/allocator/StealthAllocator.hpp +++ b/alib2measure/src/allocator/StealthAllocator.hpp @@ -25,7 +25,7 @@ public: template < typename U > struct rebind { using other = stealth_allocator < U >; }; - stealth_allocator ( ) { } + stealth_allocator ( ) = default; template < typename U > stealth_allocator ( const stealth_allocator < U > & ) { } diff --git a/alib2measure/src/measurements/MeasurementResults.cpp b/alib2measure/src/measurements/MeasurementResults.cpp index a0db2a8686fea3b142897d881700da2bef4f159d..a8fdbe0d7df5b8af92f77fa50fa79d1c95daa97a 100644 --- a/alib2measure/src/measurements/MeasurementResults.cpp +++ b/alib2measure/src/measurements/MeasurementResults.cpp @@ -5,8 +5,7 @@ namespace measurements { -MeasurementResults::MeasurementResults ( ) { -} +MeasurementResults::MeasurementResults ( ) = default; MeasurementResults::MeasurementResults ( const measurements::stealth_vector < MeasurementFrame > & resultFrames ) : frames ( resultFrames ) { } diff --git a/alib2raw/src/registry/RawReaderRegistry.hpp b/alib2raw/src/registry/RawReaderRegistry.hpp index a2c93daf5b35c5c09361746bafbf8cd9d9ab3385..0ed8b66b5908d768540e4652b983edd58b2f9989 100644 --- a/alib2raw/src/registry/RawReaderRegistry.hpp +++ b/alib2raw/src/registry/RawReaderRegistry.hpp @@ -24,8 +24,7 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: @@ -34,8 +33,7 @@ private: public: std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; }; static ext::map < std::string, std::unique_ptr < Entry > > & getEntries ( ); diff --git a/alib2raw/src/registry/RawWriterRegistry.hpp b/alib2raw/src/registry/RawWriterRegistry.hpp index d71c0d32d4b1471efb7c084bc5b09f25226c65c8..3817d7e2c31bdef42c9fdf7a378638cdac55570d 100644 --- a/alib2raw/src/registry/RawWriterRegistry.hpp +++ b/alib2raw/src/registry/RawWriterRegistry.hpp @@ -24,19 +24,16 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: template < class Param > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; diff --git a/alib2std/src/extensions/container/tree.hpp b/alib2std/src/extensions/container/tree.hpp index d4ccf1ed4c47f9780b20fbcd580afe20294acd67..a09ed12150cf617ecc9ae647de64c70064db1922 100644 --- a/alib2std/src/extensions/container/tree.hpp +++ b/alib2std/src/extensions/container/tree.hpp @@ -783,8 +783,7 @@ public: * \brief * Dectructor of the tree */ - ~tree ( ) noexcept { - } + ~tree ( ) noexcept = default; /** * \brief diff --git a/alib2std/src/extensions/container/tree_base.hpp b/alib2std/src/extensions/container/tree_base.hpp index 786ffdcc83d631936de8ee8dba9bbc494c55e18e..d56abd14adcf1b77b5f7d527baa4025cee94f272 100644 --- a/alib2std/src/extensions/container/tree_base.hpp +++ b/alib2std/src/extensions/container/tree_base.hpp @@ -74,8 +74,7 @@ public: * \brief * Destructor of the tree hierarchy base class. */ - virtual ~BaseNode ( ) noexcept { - } + virtual ~BaseNode ( ) noexcept = default; /** * \brief @@ -169,8 +168,7 @@ public: * \brief * Destructor of the class. */ - virtual ~AnyaryNode ( ) noexcept { - } + virtual ~AnyaryNode ( ) noexcept = default; /** * \brief @@ -755,8 +753,7 @@ public: * \brief * Destructor of the class. */ - virtual ~FixedaryNode ( ) noexcept { - } + virtual ~FixedaryNode ( ) noexcept = default; /** * \brief @@ -981,8 +978,7 @@ public: * \brief * Default constructor. Sets the vector of children to empty vector. */ - VararyNode ( ) { - } + VararyNode ( ) = default; /** * \brief @@ -999,8 +995,7 @@ public: * \brief * Destructor of the class. */ - virtual ~VararyNode ( ) noexcept { - } + virtual ~VararyNode ( ) noexcept = default; /** * \brief diff --git a/alib2std/src/extensions/container/trie.hpp b/alib2std/src/extensions/container/trie.hpp index 0e03be46ba48b004452dc5f06c2908a5468d00ad..05ff959ddc7758ef3f9cea11845fdac55449fab2 100644 --- a/alib2std/src/extensions/container/trie.hpp +++ b/alib2std/src/extensions/container/trie.hpp @@ -251,8 +251,7 @@ public: * \brief * Dectructor of the trie */ - ~trie ( ) noexcept { - } + ~trie ( ) noexcept = default; /** * \brief diff --git a/alib2std/src/extensions/fdstream.cpp b/alib2std/src/extensions/fdstream.cpp index 0c948b1d796c72ac8f55a53a9339bcf56c49e86b..26b4b293db9642e21877ae7d93a2d48bc39dcce3 100644 --- a/alib2std/src/extensions/fdstream.cpp +++ b/alib2std/src/extensions/fdstream.cpp @@ -109,8 +109,7 @@ ofdstream::ofdstream ( int fd, int fallback_fd ) : /* NOTE: this might potential setstate ( ios_base::failbit ); } -ofdstream::~ofdstream ( ) { -} +ofdstream::~ofdstream ( ) = default; bool ofdstream::is_redirected ( ) const { return fda.is_redirected ( ); @@ -121,8 +120,7 @@ ifdstream::ifdstream ( int fd, int fallback_fd ) : /* NOTE: this might potential setstate ( ios_base::failbit ); } -ifdstream::~ifdstream ( ) { -} +ifdstream::~ifdstream ( ) = default; bool ifdstream::is_redirected ( ) const { return fda.is_redirected ( ); diff --git a/alib2std/src/extensions/range.hpp b/alib2std/src/extensions/range.hpp index 0358089bf8e4556b2f0977d88fd4b6e14be36636..2d1d2a4f237be40a41a1bd810769f26c31e1b9ed 100644 --- a/alib2std/src/extensions/range.hpp +++ b/alib2std/src/extensions/range.hpp @@ -67,8 +67,7 @@ public: * \brief * Constructor of empty iterator_range. Both iterators are initialized to default (same) value. */ - iterator_range ( ) { - } + iterator_range ( ) = default; /** * \brief diff --git a/alib2str/src/core/stringApi.hpp b/alib2str/src/core/stringApi.hpp index c898a4e6f42aa0a9c034bc919d389f2a1afbeb64..f39d14dc5b69f77e34b877e1b664980bf0177a32 100644 --- a/alib2str/src/core/stringApi.hpp +++ b/alib2str/src/core/stringApi.hpp @@ -35,8 +35,7 @@ public: public: virtual object::Object parse ( std::istream & input ) = 0; - virtual ~GroupReader ( ) { - } + virtual ~GroupReader ( ) = default; }; private: @@ -57,8 +56,7 @@ public: public: virtual void compose ( std::ostream & output, const object::Object & group ) = 0; - virtual ~GroupWriter ( ) { - } + virtual ~GroupWriter ( ) = default; }; private: diff --git a/alib2str/src/registry/StringReaderRegistry.hpp b/alib2str/src/registry/StringReaderRegistry.hpp index 027b94f55a94aa6aed7db433feb52d3d7643e850..2c2e3f32ff50e871b1abc1ebc54cb46376fb23a8 100644 --- a/alib2str/src/registry/StringReaderRegistry.hpp +++ b/alib2str/src/registry/StringReaderRegistry.hpp @@ -25,19 +25,16 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: template < class Return > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; diff --git a/alib2str/src/registry/StringWriterRegistry.hpp b/alib2str/src/registry/StringWriterRegistry.hpp index c575b641bccc9f1c8e340176be1d1ec5c9c85bad..1d52106e5ca9c38332603b55f0cb52821a88317a 100644 --- a/alib2str/src/registry/StringWriterRegistry.hpp +++ b/alib2str/src/registry/StringWriterRegistry.hpp @@ -24,8 +24,7 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; @@ -33,11 +32,9 @@ private: template < class Param > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; diff --git a/alib2xml/src/registry/XmlComposerRegistry.hpp b/alib2xml/src/registry/XmlComposerRegistry.hpp index 070498eb3bd50936f6085a38cf063798b360fa5d..865b05557543607e9fa2879790fd8f900c2b2e1b 100644 --- a/alib2xml/src/registry/XmlComposerRegistry.hpp +++ b/alib2xml/src/registry/XmlComposerRegistry.hpp @@ -25,19 +25,16 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: template < class Param > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; }; diff --git a/alib2xml/src/registry/XmlContainerParserRegistry.hpp b/alib2xml/src/registry/XmlContainerParserRegistry.hpp index ea65d53e79db1a639108fc24870fa78c89f223c8..6104009a911877fab5842f04d7ee2b21cd821575 100644 --- a/alib2xml/src/registry/XmlContainerParserRegistry.hpp +++ b/alib2xml/src/registry/XmlContainerParserRegistry.hpp @@ -27,8 +27,7 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: @@ -37,8 +36,7 @@ private: public: std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; - virtual ~SetEntryImpl ( ) { - } + virtual ~SetEntryImpl ( ) = default; }; static ext::map < std::string, ext::list < ext::pair < std::string, std::unique_ptr < Entry > > > > & getEntries ( ); diff --git a/alib2xml/src/registry/XmlParserRegistry.hpp b/alib2xml/src/registry/XmlParserRegistry.hpp index e9ad573482dde9b7240c81ee632247e471495cea..60c8a82cf229ddd12959ab5f34836f92317d34a4 100644 --- a/alib2xml/src/registry/XmlParserRegistry.hpp +++ b/alib2xml/src/registry/XmlParserRegistry.hpp @@ -24,19 +24,16 @@ public: public: virtual std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const = 0; - virtual ~Entry ( ) { - } + virtual ~Entry ( ) = default; }; private: template < class Return > class EntryImpl : public Entry { public: - EntryImpl ( ) { - } + EntryImpl ( ) = default; - virtual ~EntryImpl ( ) { - } + virtual ~EntryImpl ( ) = default; std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( ) const override; };