Inplace strings - performance optimization

This commit is contained in:
Jakub Melka
2020-05-29 19:56:10 +02:00
parent 702ee98316
commit 91f1779053
12 changed files with 198 additions and 60 deletions

View File

@ -1131,7 +1131,7 @@ PDF3DBackground PDF3DBackground::parse(const PDFObjectStorage* storage, PDFObjec
PDFObject colorSpace = dictionary->get("CS");
if (colorSpace.isNull())
{
colorSpace = PDFObject::createName(std::make_shared<PDFString>("DeviceRGB"));
colorSpace = PDFObject::createName("DeviceRGB");
}
std::vector<PDFReal> color = loader.readNumberArrayFromDictionary(dictionary, "C", { 1.0, 1.0, 1.0});
PDFArray array;