Make method getPageRanges return std::vector as object
Rather than returning a pointer to a std::vector allocated on the heap.
This avoids one allocation.
Rather than returning a pointer to a std::vector allocated on the heap.
This avoids one allocation.