diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-06-21 11:49:42 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-10 23:13:14 +0200 |
| commit | b9686f36146719d81473612e66eec452cd0b53f8 (patch) | |
| tree | 5bea3acba20a0c603e34052204f238f608dfb5a1 | |
| parent | 09b4dcf460d6fbe69139eca40f1c890ea5f33a5d (diff) | |
Replace SPL::operator[] with get().
| -rw-r--r-- | src/lib/spl.h | 2 | ||||
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/spl.h b/src/lib/spl.h index b010a4bed..547b475c8 100644 --- a/src/lib/spl.h +++ b/src/lib/spl.h @@ -56,7 +56,7 @@ public: return _spl; } - SPLEntry const & operator[](std::size_t index) const { + SPLEntry const& get(std::size_t index) const { return _spl[index]; } diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 91375e489..f3b55b72b 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -462,8 +462,8 @@ private: _playlist->swap(s, s - 1); - set_item(s - 1, (*_playlist)[s-1]); - set_item(s, (*_playlist)[s]); + set_item(s - 1, _playlist->get(s - 1)); + set_item(s, _playlist->get(s)); } void down_clicked() @@ -477,8 +477,8 @@ private: _playlist->swap(s, s + 1); - set_item(s + 1, (*_playlist)[s+1]); - set_item(s, (*_playlist)[s]); + set_item(s + 1, _playlist->get(s + 1)); + set_item(s, _playlist->get(s)); } void remove_clicked() |
