From 9bc752c7fabe190987ae46ed28620b62cdff60e9 Mon Sep 17 00:00:00 2001 From: Oliver Sander Date: Sun, 2 Dec 2018 21:02:51 +0100 Subject: Remove GooList completely --- splash/Splash.cc | 1 - splash/SplashBitmap.cc | 5 ++--- splash/SplashBitmap.h | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'splash') diff --git a/splash/Splash.cc b/splash/Splash.cc index 6be2477c..2ab79637 100644 --- a/splash/Splash.cc +++ b/splash/Splash.cc @@ -36,7 +36,6 @@ #include #include "goo/gmem.h" #include "goo/GooLikely.h" -#include "goo/GooList.h" #include "poppler/Error.h" #include "SplashErrorCodes.h" #include "SplashMath.h" diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc index 0afa3fcb..37e936c9 100644 --- a/splash/SplashBitmap.cc +++ b/splash/SplashBitmap.cc @@ -46,7 +46,6 @@ #include "goo/PNGWriter.h" #include "goo/TiffWriter.h" #include "goo/ImgWriter.h" -#include "goo/GooList.h" //------------------------------------------------------------------------ // SplashBitmap @@ -54,7 +53,7 @@ SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPadA, SplashColorMode modeA, bool alphaA, - bool topDown, GooList *separationListA) { + bool topDown, std::vector *separationListA) { width = widthA; height = heightA; mode = modeA; @@ -124,7 +123,7 @@ SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPadA, } else { alpha = nullptr; } - separationList = new GooList(); + separationList = new std::vector(); if (separationListA != nullptr) for (std::size_t i = 0; i < separationListA->size(); i++) separationList->push_back((GfxSeparationColorSpace*)( (*separationListA)[i])->copy()); diff --git a/splash/SplashBitmap.h b/splash/SplashBitmap.h index 4ad9b628..fb066841 100644 --- a/splash/SplashBitmap.h +++ b/splash/SplashBitmap.h @@ -51,7 +51,7 @@ public: // upside-down, i.e., with the last row first in memory. SplashBitmap(int widthA, int heightA, int rowPad, SplashColorMode modeA, bool alphaA, - bool topDown = true, GooList *separationList = nullptr); + bool topDown = true, std::vector *separationList = nullptr); static SplashBitmap *copy(SplashBitmap *src); ~SplashBitmap(); @@ -67,7 +67,7 @@ public: SplashColorMode getMode() { return mode; } SplashColorPtr getDataPtr() { return data; } unsigned char *getAlphaPtr() { return alpha; } - GooList *getSeparationList() { return separationList; } + std::vector *getSeparationList() { return separationList; } SplashError writePNMFile(char *fileName); SplashError writePNMFile(FILE *f); @@ -117,7 +117,7 @@ private: SplashColorPtr data; // pointer to row zero of the color data unsigned char *alpha; // pointer to row zero of the alpha data // (always top-down) - GooList *separationList; // list of spot colorants and their mapping functions + std::vector *separationList; // list of spot colorants and their mapping functions friend class Splash; -- cgit v1.2.3