diff options
author | Jay Berkenbilt <ejb@ql.org> | 2010-09-05 17:02:19 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2010-09-05 17:02:19 +0200 |
commit | 1dade9a7ee0a8aba935fbf81a4ee7891a83285a2 (patch) | |
tree | 4a059365f11432e0730faa1d9d7ef0f9fa02d4af /TODO | |
parent | b1e0dcff16740d5a99e58c298284c5d589b3034f (diff) | |
download | qpdf-1dade9a7ee0a8aba935fbf81a4ee7891a83285a2.tar.zst |
more notes on cout
git-svn-id: svn+q:///qpdf/trunk@1026 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -4,7 +4,13 @@ General * QPDF::checkLinearization writes things to std::cout, which makes it hard for GUIs that want to display the result. Go through all library code and get rid of use of std::cout and std::cerr, - replacing them with some better mechanism. + replacing them with some better mechanism. To avoid changing the + ABI, add two new methods: one that takes a std::ostream& and one + that takes a reference to a std::vector<std::string>. The real + code should append to the vector. The ostream version should + remember to catch exceptions, output the vector elements, and + rethrow if needed. The old version should call the ostream version + with std::cout. * In general, take a fresh look at private methods to see which, if any, should be protected. |