Improve and simplify code with modern C++ features
Change-Id: I83bf5513c2a1f90ba5a59e93c473306864b27d94
diff --git a/daemon/face/lp-fragmenter.hpp b/daemon/face/lp-fragmenter.hpp
index 40d32cb..51d14d9 100644
--- a/daemon/face/lp-fragmenter.hpp
+++ b/daemon/face/lp-fragmenter.hpp
@@ -44,19 +44,15 @@
public:
/** \brief Options that control the behavior of LpFragmenter
*/
- class Options
+ struct Options
{
- public:
- Options();
-
- public:
/** \brief maximum number of fragments in a packet
*/
- size_t nMaxFragments;
+ size_t nMaxFragments = 400;
};
explicit
- LpFragmenter(const Options& options = Options(), const LinkService* linkService = nullptr);
+ LpFragmenter(const Options& options, const LinkService* linkService = nullptr);
/** \brief set options for fragmenter
*/