summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorOliver Sander <oliver.sander@tu-dresden.de>2018-11-30 17:46:02 +0100
committerAlbert Astals Cid <tsdgeos@yahoo.es>2019-03-21 22:28:12 +0000
commitfda9a2a2fcb0d12add4812c84f7d39684d2ca6d7 (patch)
tree5f4b4421c0add211fe3b34359e3048248d71dc6f /splash
parentf4e902124c90333db9b2ff2fee3dcf01f52df999 (diff)
Remove method GooList::getLength
Use method 'size' (from std::vector) instead.
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc4
-rw-r--r--splash/SplashBitmap.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index bcacb5f2..bc718190 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -5283,8 +5283,8 @@ SplashError Splash::composite(SplashBitmap *src, int xSrc, int ySrc,
return splashErrZeroImage;
}
- if(src->getSeparationList()->getLength() > bitmap->getSeparationList()->getLength()) {
- for (x = bitmap->getSeparationList()->getLength(); x < src->getSeparationList()->getLength(); x++)
+ if(src->getSeparationList()->size() > bitmap->getSeparationList()->size()) {
+ for (x = bitmap->getSeparationList()->size(); x < (int)src->getSeparationList()->size(); x++)
bitmap->getSeparationList()->push_back(((GfxSeparationColorSpace *)src->getSeparationList()->get(x))->copy());
}
if (src->alpha) {
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index 5690950e..ada32728 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -126,7 +126,7 @@ SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPadA,
}
separationList = new GooList();
if (separationListA != nullptr)
- for (int i = 0; i < separationListA->getLength(); i++)
+ for (std::size_t i = 0; i < separationListA->size(); i++)
separationList->push_back(((GfxSeparationColorSpace *) separationListA->get(i))->copy());
}