Commit c4c8b5be authored by Albert Astals Cid's avatar Albert Astals Cid

FontInfo: Save unneeded copy() call

parent a1b7baea
......@@ -131,7 +131,7 @@ void FontInfoScanner::scanFonts(XRef *xrefA, Dict *resDict, GooList *fontsList)
Object objDict = resDict->lookup(resTypes[resType]);
if (objDict.isDict()) {
for (int i = 0; i < objDict.dictGetLength(); ++i) {
const Object &resObj = objDict.dictGetValNF(i).copy();
const Object &resObj = objDict.dictGetValNF(i);
if (resObj.isRef()) {
// check for an already-seen object
const Ref r = resObj.getRef();
......
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