diff --git a/aegisub/src/base_grid.h b/aegisub/src/base_grid.h index a214ac05b..1e97779d4 100644 --- a/aegisub/src/base_grid.h +++ b/aegisub/src/base_grid.h @@ -136,7 +136,7 @@ public: virtual AssDialogue * GetActiveLine() const { return active_line; } virtual void SetSelectedSet(const Selection &new_selection); virtual void GetSelectedSet(Selection &res) const { res = selection; } - virtual Selection GetSelectedSet() const { return selection; } + virtual Selection const& GetSelectedSet() const { return selection; } virtual void NextLine(); virtual void PrevLine(); diff --git a/aegisub/src/selection_controller.h b/aegisub/src/selection_controller.h index 13b57e9fa..31e654769 100644 --- a/aegisub/src/selection_controller.h +++ b/aegisub/src/selection_controller.h @@ -127,7 +127,7 @@ public: /// @brief Obtain the selected set /// @return The selected set - virtual Selection GetSelectedSet() const = 0; + virtual Selection const& GetSelectedSet() const = 0; /// @brief Change the active line to the next in sequence ///