summaryrefslogtreecommitdiff
path: root/src/selection.hh
diff options
context:
space:
mode:
authorJason Felice <jason.m.felice@gmail.com>2019-11-02 16:49:26 -0400
committerJason Felice <jason.m.felice@gmail.com>2019-11-09 12:53:45 -0500
commitd26bb0ce2bd7bffd87b38b466f1e9642b85d0715 (patch)
tree7d03051b0b2c104bf809c9d91fead12903cdc561 /src/selection.hh
parent49ca5127336d1bac7b3e64e3efa7b20060a9f96a (diff)
Add static or const where useful
Diffstat (limited to 'src/selection.hh')
-rw-r--r--src/selection.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.hh b/src/selection.hh
index 34532f9b..5c47f878 100644
--- a/src/selection.hh
+++ b/src/selection.hh
@@ -65,7 +65,7 @@ inline bool overlaps(const Selection& lhs, const Selection& rhs)
}
void update_selections(Vector<Selection>& selections, size_t& main,
- Buffer& buffer, size_t timestamp, bool merge = true);
+ const Buffer& buffer, size_t timestamp, bool merge = true);
bool compare_selections(const Selection& lhs, const Selection& rhs);
void sort_selections(Vector<Selection>& selections, size_t& main);
@@ -155,7 +155,7 @@ private:
size_t m_timestamp;
};
-Vector<Selection> compute_modified_ranges(Buffer& buffer, size_t timestamp);
+Vector<Selection> compute_modified_ranges(const Buffer& buffer, size_t timestamp);
String selection_to_string(const Selection& selection);
String selection_list_to_string(const SelectionList& selection);