aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qpdf/qpdf.cc2
-rw-r--r--qpdf/test_driver.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc
index 17484b3f..4ec0a48c 100644
--- a/qpdf/qpdf.cc
+++ b/qpdf/qpdf.cc
@@ -3836,7 +3836,7 @@ ImageOptimizer::makePipeline(std::string const& description, Pipeline* next)
h_obj.isInteger() ? h_obj.getIntValue() : h_obj.getNumericValue());
std::string colorspace = (colorspace_obj.isName() ?
colorspace_obj.getName() :
- "");
+ std::string());
int components = 0;
J_COLOR_SPACE cs = JCS_UNKNOWN;
if (colorspace == "/DeviceRGB")
diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc
index 462a8a23..d3abbe46 100644
--- a/qpdf/test_driver.cc
+++ b/qpdf/test_driver.cc
@@ -1631,7 +1631,7 @@ void runtest(int n, char const* filename1, char const* arg2)
QPDFFormFieldObjectHelper parent(node.getParent());
std::cout << " Parent: "
<< (parent.isNull()
- ? "none"
+ ? std::string("none")
: parent.getObjectHandle().unparse())
<< std::endl;
node = parent;