diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-08-24 02:01:53 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-08-24 19:27:09 +0200 |
commit | 335cb47a0e369fd6cf7af594801c2bcf5d74675a (patch) | |
tree | 89d262a83b1943cbcf6f5d8ee6e34e8b841ec642 /poppler/SplashOutputDev.cc | |
parent | a2f2f3b91fb007b0c17090d369179e7605c9a4b7 (diff) |
GfxDeviceNColorSpace: Port to std::vector<std::string>
I was tired of having two constructors for GfxDeviceNColorSpace, both
taking GooString ** but one copying those strings and the other keeping
them for itself.
Moved to std::vector<std::string> without much fallout in the rest of
the code
Diffstat (limited to 'poppler/SplashOutputDev.cc')
-rw-r--r-- | poppler/SplashOutputDev.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index e3fcf9cb..aba4578e 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -1740,13 +1740,13 @@ void SplashOutputDev::setOverprintMask(GfxColorSpace *colorSpace, GfxDeviceNColorSpace *deviceNCS = (GfxDeviceNColorSpace *)colorSpace; additive = mask == 0x0f && !deviceNCS->isNonMarking(); for (i = 0; i < deviceNCS->getNComps() && additive; i++) { - if (deviceNCS->getColorantName(i)->cmp("Cyan") == 0) { + if (deviceNCS->getColorantName(i).compare("Cyan") == 0) { additive = false; - } else if (deviceNCS->getColorantName(i)->cmp("Magenta") == 0) { + } else if (deviceNCS->getColorantName(i).compare("Magenta") == 0) { additive = false; - } else if (deviceNCS->getColorantName(i)->cmp("Yellow") == 0) { + } else if (deviceNCS->getColorantName(i).compare("Yellow") == 0) { additive = false; - } else if (deviceNCS->getColorantName(i)->cmp("Black") == 0) { + } else if (deviceNCS->getColorantName(i).compare("Black") == 0) { additive = false; } } |