summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-06 15:36:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-07 10:25:25 +0100
commite89964ebb3ba3bd7d694695c004c5f976d8d9616 (patch)
treef01c76532dfd520dc26d574aac83e1e421a1a6bf /include/o3tl
parent469430a7d36fc1e860b4b68137261ec0833386c0 (diff)
ofz: Pos2Page returns true on same value that returned false previously
a failed position returns false, but stays at the failed position, so next time its called without moving it then it returns true store what we return for a given position for reuse if the position doesn't change Change-Id: I404c65ac89eb6f5c867f62a62028b87effdbcbf8 Reviewed-on: https://gerrit.libreoffice.org/49308 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/sorted_vector.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/o3tl/sorted_vector.hxx b/include/o3tl/sorted_vector.hxx
index 7a9ca4568032..9141c592ffd8 100644
--- a/include/o3tl/sorted_vector.hxx
+++ b/include/o3tl/sorted_vector.hxx
@@ -86,6 +86,11 @@ public:
m_vector.clear();
}
+ void reserve(size_type amount)
+ {
+ m_vector.reserve(amount);
+ }
+
// ACCESSORS
size_type size() const