aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-09-09 13:03:29 +0200
committerJay Berkenbilt <ejb@ql.org>2022-09-09 13:03:29 +0200
commit0ad4e190ffbb85ea2db5a05d43cd4f81d98cfe63 (patch)
treec764219e926bc01ddd72f3bc7dca41aaf6a46b7f /include
parent7049588bff21e3ea3e7bf3c4a4325c8ab4ed46f8 (diff)
downloadqpdf-0ad4e190ffbb85ea2db5a05d43cd4f81d98cfe63.tar.zst
Make QPDFLogger() private and provide create method
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFLogger.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/qpdf/QPDFLogger.hh b/include/qpdf/QPDFLogger.hh
index 655da668..54d91d60 100644
--- a/include/qpdf/QPDFLogger.hh
+++ b/include/qpdf/QPDFLogger.hh
@@ -31,7 +31,7 @@ class QPDFLogger
{
public:
QPDF_DLL
- QPDFLogger();
+ static std::shared_ptr<QPDFLogger> create();
// Return the default logger. In general, you should use the
// default logger. You can also create your own loggers and use
@@ -152,6 +152,7 @@ class QPDFLogger
void setOutputStreams(std::ostream* out_stream, std::ostream* err_stream);
private:
+ QPDFLogger();
std::shared_ptr<Pipeline>
throwIfNull(std::shared_ptr<Pipeline>, bool null_okay);