gcc-9-fix.patch 658 B

12345678910111213141516171819202122
  1. Bug: https://bugs.gentoo.org/686982
  2. TabStripModelChange has a defaulted default constructor and a const data member
  3. without a user-defined default constructor. This leads to a bug:
  4. error: defaulting this default constructor would delete it after
  5. its first declaration
  6. We declare the data member as non-const instead.
  7. --- a/chrome/browser/ui/tabs/tab_strip_model_observer.h
  8. +++ b/chrome/browser/ui/tabs/tab_strip_model_observer.h
  9. @@ -103,7 +103,7 @@ class TabStripModelChange {
  10. private:
  11. const Type type_ = kSelectionOnly;
  12. - const std::vector<Delta> deltas_;
  13. + std::vector<Delta> deltas_;
  14. DISALLOW_COPY_AND_ASSIGN(TabStripModelChange);
  15. };