mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
Everywhere: Stop using NonnullRefPtrVector
This class had slightly confusing semantics and the added weirdness doesn't seem worth it just so we can say "." instead of "->" when iterating over a vector of NNRPs. This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
This commit is contained in:
parent
104be6c8ac
commit
8a48246ed1
168 changed files with 1280 additions and 1280 deletions
|
@ -94,7 +94,7 @@ public:
|
|||
void save_project_as();
|
||||
void save_project();
|
||||
|
||||
NonnullRefPtrVector<Guide> const& guides() const { return m_guides; }
|
||||
Vector<NonnullRefPtr<Guide>> const& guides() const { return m_guides; }
|
||||
bool guide_visibility() { return m_show_guides; }
|
||||
void set_guide_visibility(bool show_guides);
|
||||
Function<void(bool)> on_set_guide_visibility;
|
||||
|
@ -168,7 +168,7 @@ private:
|
|||
DeprecatedString m_path;
|
||||
DeprecatedString m_title;
|
||||
|
||||
NonnullRefPtrVector<Guide> m_guides;
|
||||
Vector<NonnullRefPtr<Guide>> m_guides;
|
||||
bool m_show_guides { true };
|
||||
bool m_show_rulers { true };
|
||||
bool m_show_pixel_grid { true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue