cpdb: Print name of the key that was actually set

Print key of the `key` local variable, which is
the one used in the iteration and which gets passed
in the PPDContext::setValue call above, instead of
using `pKey` that was assigned further above but
is generally unrelated here.

Change-Id: Ifdb86b5848dc2d7f0027a3960f43914ea143c018
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180082
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn
2025-01-10 20:45:29 +01:00
parent e148db3dee
commit a47ee4efce
+2 -2
View File
@@ -435,11 +435,11 @@ const PPDParser* CPDManager::createCPDParser(const OUString& rPrinter)
{
rContext.setValue(key, p1Value, true);
SAL_INFO("vcl.unx.print",
"key " << pKey->getKey() << " is set to " << *defit);
"key " << key->getKey() << " is set to " << *defit);
}
else
SAL_INFO("vcl.unx.print",
"key " << pKey->getKey() << " is defaulted to " << *defit);
"key " << key->getKey() << " is defaulted to " << *defit);
}
++defit;
}