Files
hplip/hpcups-fix-compilation-on-SLE12.patch
Johannes Meixner b2ab3cb1c9 - Update to hplip 3.25.2
- Added support for new printers:
  * HP LaserJet Enterprise Flow MFP 8601z
  * HP LaserJet Enterprise Flow MFP 8601z+
  * HP LaserJet Enterprise MFP 8601dn
  * HP Color LaserJet Enterprise MFP 8801dn
  * HP Color LaserJet Enterprise Flow MFP 8801z
  * HP Color LaserJet Enterprise Flow MFP 8801z+
  * HP LaserJet Enterprise 8501dn
  * HP LaserJet Enterprise 8501x
  * HP LaserJet Enterprise 8501x+
  * DEX MFP D826
  * DEX MFP D82640
  * DEX MFP D82650
  * DEX MFP D82660
  * DEX D50145
  * DEX MFP D42540
  * DEX MFP D52645
  * DEX Color D55745
  * DEX Color MFP D57945
  * DEX Color MFP D677
  * DEX Color MFP D67755
  * DEX Color MFP D67765
  * DEX Color MFP D877
  * DEX Color MFP D87740
  * DEX Color MFP D87750
  * DEX Color MFP D87760
  * DEX Color MFP D87770
  * DEX Color MFP D786
  * DEX Colour MFP D78625

OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=266
2025-05-08 14:17:16 +00:00

29 lines
1.1 KiB
Diff

From e95a9cb2e946bec33d7f0afa04850f93ae258477 Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwilck@suse.com>
Date: Wed, 7 May 2025 15:53:46 +0200
Subject: [PATCH] hpcups: fix compilation on SLE12
SLE12-SP5 is not using C++11 by default, thus nullptr is not
defined. NULL is used elsewhere in the file, so we can just
replace nullptr with NULL.
---
prnt/hpcups/HPCupsFilter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/prnt/hpcups/HPCupsFilter.cpp b/prnt/hpcups/HPCupsFilter.cpp
index 6750684..7d397ed 100644
--- a/prnt/hpcups/HPCupsFilter.cpp
+++ b/prnt/hpcups/HPCupsFilter.cpp
@@ -435,7 +435,7 @@ DRIVER_ERROR HPCupsFilter::startPage (cups_page_header2_t *cups_header)
if (m_JA.media_attributes.PageSizeName[0] == '\0') {
// Copy the value of cups_header->cupsPageSizeName if it isnot null
- if (cups_header->cupsPageSizeName != nullptr) {
+ if (cups_header->cupsPageSizeName != NULL) {
strncpy(m_JA.media_attributes.PageSizeName, cups_header->cupsPageSizeName, sizeof(m_JA.media_attributes.PageSizeName));
}
}
--
2.49.0