2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-23 03:18:59 +00:00

Fix typo in variable name

This commit is contained in:
Jay Berkenbilt 2012-07-10 22:24:25 -04:00
parent b9aded1a00
commit 43d4f79352

View File

@ -687,14 +687,14 @@ void runtest(int n, char const* filename)
// dictionary and modify it. Using the results of // dictionary and modify it. Using the results of
// getDictAsMap to create a new dictionary effectively creates // getDictAsMap to create a new dictionary effectively creates
// a shallow copy. // a shallow copy.
QPDFObjectHandle page_tempate = pages[0]; QPDFObjectHandle page_template = pages[0];
std::vector<QPDFObjectHandle> new_pages; std::vector<QPDFObjectHandle> new_pages;
for (std::vector<QPDFObjectHandle>::iterator iter = contents.begin(); for (std::vector<QPDFObjectHandle>::iterator iter = contents.begin();
iter != contents.end(); ++iter) iter != contents.end(); ++iter)
{ {
// We will retain indirect object references to other // We will retain indirect object references to other
// indirect objects other than page content. // indirect objects other than page content.
QPDFObjectHandle page = page_tempate.shallowCopy(); QPDFObjectHandle page = page_template.shallowCopy();
page.replaceKey("/Contents", *iter); page.replaceKey("/Contents", *iter);
if (iter == contents.begin()) if (iter == contents.begin())
{ {