mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
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:
6
plot.cpp
6
plot.cpp
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user