summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet/Readers
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-08-21 22:32:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-31 16:43:18 +0200
commitf56e24098134039293e88519a62eb33007c80ab0 (patch)
tree4946c1ec3a6985bdbf3f87c3cf880a4848e9a309 /Userland/Applications/Spreadsheet/Readers
parent59eab8148d8442929dff0a348d5d7b3450685522 (diff)
downloadserenity-f56e24098134039293e88519a62eb33007c80ab0.zip
Spreadsheet: Add RowIterator::index()
Diffstat (limited to 'Userland/Applications/Spreadsheet/Readers')
-rw-r--r--Userland/Applications/Spreadsheet/Readers/XSV.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/Spreadsheet/Readers/XSV.h b/Userland/Applications/Spreadsheet/Readers/XSV.h
index d5d7bcfb07..127164deb4 100644
--- a/Userland/Applications/Spreadsheet/Readers/XSV.h
+++ b/Userland/Applications/Spreadsheet/Readers/XSV.h
@@ -148,6 +148,8 @@ public:
return m_index == other.m_index && &m_xsv == &other.m_xsv;
}
+ constexpr size_t index() const { return m_index; }
+
private:
XSV& m_xsv;
size_t m_index { 0 };