diff options
author | 2016-08-05 23:51:36 -0700 | |
---|---|---|
committer | 2016-08-06 11:58:04 -0700 | |
commit | 64ba7d5be854122e1a5ec2c17949634abebca250 (patch) | |
tree | 23a645693d6bfea50c5c7d2c32da5d194944609b /doc | |
parent | 1ad5f5ce2025f1db0ea5dd1fcf72223430f143b4 (diff) | |
download | paludis-64ba7d5be854122e1a5ec2c17949634abebca250.tar.gz paludis-64ba7d5be854122e1a5ec2c17949634abebca250.tar.xz |
modernize: use default method synthesis
Convert a number of destructors to default synthesized functions. Try to
inline a few instances into the header. It should be possible to inline all of
them, however, gcc seems to emit a number of warnings. Furthermore, some of the
destructors are pure-virtualed, but provide an implementation. Placing the
definition into the header causes ODR violations.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cplusplus/examples/example_command_line.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/api/cplusplus/examples/example_command_line.cc b/doc/api/cplusplus/examples/example_command_line.cc index cfd07ce1e..b19dd2e63 100644 --- a/doc/api/cplusplus/examples/example_command_line.cc +++ b/doc/api/cplusplus/examples/example_command_line.cc @@ -50,9 +50,7 @@ CommandLine::app_description() const return "This is an example program."; } -CommandLine::~CommandLine() -{ -} +CommandLine::~CommandLine() = default; void examples::show_help_and_exit(const char * const argv[]) |