summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorOliver Sander <oliver.sander@tu-dresden.de>2018-12-02 20:41:27 +0100
committerAlbert Astals Cid <tsdgeos@yahoo.es>2019-03-21 22:28:12 +0000
commitfa8f3f22e85a5508fa53e8604b079e9b73e63f76 (patch)
treeaae8d0913e35ce574b9c29c201757c8138d2f3db /splash
parent760ca656bd30bba162392011ebca5c67df25ae47 (diff)
Remove method GooList::get
Use operator[] instead. This is another move towards discarding GooList in favor of std::vector.
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc2
-rw-r--r--splash/SplashBitmap.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 86b4fcda..6be2477c 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -5285,7 +5285,7 @@ SplashError Splash::composite(SplashBitmap *src, int xSrc, int ySrc,
if(src->getSeparationList()->size() > bitmap->getSeparationList()->size()) {
for (x = bitmap->getSeparationList()->size(); x < (int)src->getSeparationList()->size(); x++)
- bitmap->getSeparationList()->push_back((GfxSeparationColorSpace *)((GfxSeparationColorSpace *)src->getSeparationList()->get(x))->copy());
+ bitmap->getSeparationList()->push_back((GfxSeparationColorSpace *)((*src->getSeparationList())[x])->copy());
}
if (src->alpha) {
pipeInit(&pipe, xDest, yDest, nullptr, pixel,
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index d4411a0c..0afa3fcb 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -127,7 +127,7 @@ SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPadA,
separationList = new GooList<GfxSeparationColorSpace*>();
if (separationListA != nullptr)
for (std::size_t i = 0; i < separationListA->size(); i++)
- separationList->push_back((GfxSeparationColorSpace*)((GfxSeparationColorSpace *) separationListA->get(i))->copy());
+ separationList->push_back((GfxSeparationColorSpace*)( (*separationListA)[i])->copy());
}
SplashBitmap *SplashBitmap::copy(SplashBitmap *src) {