summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/wtf/text/TextPosition.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/wtf/text/TextPosition.h')
-rw-r--r--Source/JavaScriptCore/wtf/text/TextPosition.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/wtf/text/TextPosition.h b/Source/JavaScriptCore/wtf/text/TextPosition.h
index 9f426ea..bb3ffa4 100644
--- a/Source/JavaScriptCore/wtf/text/TextPosition.h
+++ b/Source/JavaScriptCore/wtf/text/TextPosition.h
@@ -89,7 +89,7 @@ public:
ZeroBasedNumber() {}
int zeroBasedInt() const { return m_value; }
-
+ int convertAsOneBasedInt() const { return m_value + 1; }
OneBasedNumber convertToOneBased() const;
bool operator==(ZeroBasedNumber other) { return m_value == other.m_value; }