Commit 8579a7b9 authored by Albert Astals Cid's avatar Albert Astals Cid

GfxICCBasedColorSpace::parse: Save unneeded copy() call

parent 4b00c90d
...@@ -1828,9 +1828,9 @@ GfxColorSpace *GfxICCBasedColorSpace::parse(Array *arr, OutputDev *out, GfxState ...@@ -1828,9 +1828,9 @@ GfxColorSpace *GfxICCBasedColorSpace::parse(Array *arr, OutputDev *out, GfxState
error(errSyntaxError, -1, "Bad ICCBased color space"); error(errSyntaxError, -1, "Bad ICCBased color space");
return nullptr; return nullptr;
} }
obj1 = arr->getNF(1).copy(); const Object &obj1Ref = arr->getNF(1);
if (obj1.isRef()) { if (obj1Ref.isRef()) {
iccProfileStreamA = obj1.getRef(); iccProfileStreamA = obj1Ref.getRef();
} else { } else {
iccProfileStreamA.num = 0; iccProfileStreamA.num = 0;
iccProfileStreamA.gen = 0; iccProfileStreamA.gen = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment