From ac4deac1873ca1bb570ffd479ed2cc1010762f89 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 28 Feb 2013 16:45:11 -0500 Subject: Call QUtil::safe_fopen in place of fopen fopen was previuosly called wrapped by QUtil::fopen_wrapper, but QUtil::safe_fopen does this itself, which is less cumbersome. --- libqpdf/QTC.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libqpdf/QTC.cc') diff --git a/libqpdf/QTC.cc b/libqpdf/QTC.cc index c1d863e6..cbaf558b 100644 --- a/libqpdf/QTC.cc +++ b/libqpdf/QTC.cc @@ -37,9 +37,7 @@ void QTC::TC(char const* const scope, char const* const ccase, int n) } cache.insert(std::make_pair(ccase, n)); - FILE* tc = - QUtil::fopen_wrapper("open test coverage file (" + filename + ")", - fopen(filename.c_str(), "ab")); // XXXX + FILE* tc = QUtil::safe_fopen(filename.c_str(), "ab"); fprintf(tc, "%s %d\n", ccase, n); fclose(tc); } -- cgit v1.2.3-54-g00ecf