Skip to content

Commit 4584ff9

Browse files
committed
cosmetic: mark applicable C++ methods as const
split out of jellyfin@d3bc472
1 parent 9eb8013 commit 4584ff9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/SubtitleOctopus.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class SubtitleOctopus {
189189
ass_set_margins(ass_renderer, top, bottom, left, right);
190190
}
191191

192-
int getEventCount() {
192+
int getEventCount() const {
193193
return track->n_events;
194194
}
195195

@@ -201,11 +201,11 @@ class SubtitleOctopus {
201201
ass_free_event(track, eid);
202202
}
203203

204-
int getStyleCount() {
204+
int getStyleCount() const {
205205
return track->n_styles;
206206
}
207207

208-
int getStyleByName(const char* name) {
208+
int getStyleByName(const char* name) const {
209209
for (int n = 0; n < track->n_styles; n++) {
210210
if (track->styles[n].Name && strcmp(track->styles[n].Name, name) == 0)
211211
return n;

0 commit comments

Comments
 (0)