mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-03-24 11:24:08 +08:00
Use "= default" for all trivial default ctors and dtors
Replace user-specified empty constructors and destructors with the compiler-generated versions, which has a number of advantages for code generation, in addition to being more clear. Closes #22965. Closes #24058.
This commit is contained in:
@@ -54,9 +54,13 @@ TEST_CASE("StdString::Iterators", "[stdstring]")
|
||||
{
|
||||
// test compilation of default iterators ctors:
|
||||
wxString::iterator i1;
|
||||
wxUnusedVar(i1);
|
||||
wxString::const_iterator i2;
|
||||
wxUnusedVar(i2);
|
||||
wxString::reverse_iterator i3;
|
||||
wxUnusedVar(i3);
|
||||
wxString::const_reverse_iterator i4;
|
||||
wxUnusedVar(i4);
|
||||
}
|
||||
|
||||
TEST_CASE("StdString::IteratorsCmp", "[stdstring]")
|
||||
|
||||
Reference in New Issue
Block a user