diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/cvlist.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/cvlist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/tests/libsample/cvlist.h b/sources/shiboken6/tests/libsample/cvlist.h index eb635c83b..e09c7d943 100644 --- a/sources/shiboken6/tests/libsample/cvlist.h +++ b/sources/shiboken6/tests/libsample/cvlist.h @@ -12,7 +12,7 @@ class CVValueType CVValueType(); }; -typedef std::list<const CVValueType*> const_ptr_value_list; +using const_ptr_value_list = std::list<const CVValueType*>; // This tests binding generation for a container of a const value type. The // class doesn't need to do anything; this is just to verify that the generated @@ -21,8 +21,8 @@ typedef std::list<const CVValueType*> const_ptr_value_list; class CVListUser { public: - static const_ptr_value_list produce() { return const_ptr_value_list(); } - static void consume(const const_ptr_value_list& l) { (void)l; } + static const_ptr_value_list produce() { return {}; } + static void consume(const const_ptr_value_list &l) { (void)l; } }; #endif // LIST_H |