mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
C++11: Use template aliases instead of inheritance.
This only came up in one location, PointerVector. A template alias is superior to inheritance, which doesn’t provide full type equivalence and doesn’t automatically inherit non-default constructors. R=rsesek@chromium.org Review URL: https://codereview.chromium.org/683753005
This commit is contained in:
parent
de0979b930
commit
bbeef320e0
@ -50,7 +50,7 @@ class PointerContainer : public ContainerType {
|
||||
//! \note No attempt is made to `delete` elements that are removed from the
|
||||
//! vector by other means, such as replacement or `clear()`.
|
||||
template <typename T>
|
||||
class PointerVector : public PointerContainer<std::vector<T*>> {};
|
||||
using PointerVector = PointerContainer<std::vector<T*>>;
|
||||
|
||||
} // namespace crashpad
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user