From a3109c8b0b75cbddd895d203fa71ee30db5de21e Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 12 Dec 2011 12:43:18 +1000 Subject: Remove QTest::qt_snprintf() from testlib API. This was an internal function that used to act like qsnprintf() but also filtered unprintable characters out of the test output. The filtering has been moved somewhere more appropriate and this function is no longer used by testlib. Unfortunately, the function was exposed in the public API due to its former use in the implementation of a public macro. In the unlikely event that any code outside testlib calls this function, the call should be replaced by calling qsnprintf(), which comes from the QtCore/QByteArray header. Change-Id: Iddc17b4361d16ebddd19346ae7d1064951dd7738 Reviewed-by: Rohan McGovern Reviewed-by: Lars Knoll --- src/testlib/qtest_global.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/testlib/qtest_global.h') diff --git a/src/testlib/qtest_global.h b/src/testlib/qtest_global.h index 6a40f47f30..31ab940474 100644 --- a/src/testlib/qtest_global.h +++ b/src/testlib/qtest_global.h @@ -78,8 +78,6 @@ QT_MODULE(Test) namespace QTest { enum TestFailMode { Abort = 1, Continue = 2 }; - - int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format, ...); } QT_END_NAMESPACE -- cgit v1.2.3