replace off_t with size_t to match system pointer size

I was having an issue with size of off_t on a multi-gigabit file.
This may have been related to long being a signed 32 bits on MSVC.
But I think there is good reason to use size_t here in general:

https://stackoverflow.com/questions/10634629/what-are-the-usage-differences-between-size-t-and-off-t
This commit is contained in:
Josh Blum
2017-11-25 16:06:08 -06:00
parent 40890e46ab
commit 3f5e373ee4
27 changed files with 94 additions and 94 deletions

View File

@@ -44,7 +44,7 @@ std::shared_ptr<AbstractSampleSource> Plot::output()
return sampleSource;
}
void Plot::paintBack(QPainter &painter, QRect &rect, range_t<off_t> sampleRange)
void Plot::paintBack(QPainter &painter, QRect &rect, range_t<size_t> sampleRange)
{
painter.save();
QPen pen(Qt::white, 1, Qt::DashLine);
@@ -53,12 +53,12 @@ void Plot::paintBack(QPainter &painter, QRect &rect, range_t<off_t> sampleRange)
painter.restore();
}
void Plot::paintMid(QPainter &painter, QRect &rect, range_t<off_t> sampleRange)
void Plot::paintMid(QPainter &painter, QRect &rect, range_t<size_t> sampleRange)
{
}
void Plot::paintFront(QPainter &painter, QRect &rect, range_t<off_t> sampleRange)
void Plot::paintFront(QPainter &painter, QRect &rect, range_t<size_t> sampleRange)
{
}