diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-12-12 12:43:18 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-15 08:02:36 +0100 |
commit | a3109c8b0b75cbddd895d203fa71ee30db5de21e (patch) | |
tree | 641b35296c6e4db3c5c8d94560561cc2c076930c /src/testlib/qtestcase.cpp | |
parent | be6b29f001eb56f1f8c963e9fcd1ad17d92eb0d7 (diff) |
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 <rohan.mcgovern@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r-- | src/testlib/qtestcase.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 202d53eada..0e384b8dc1 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -987,21 +987,6 @@ namespace QTest #endif /*! \internal - */ -int qt_snprintf(char *str, int size, const char *format, ...) -{ - va_list ap; - int res = 0; - - va_start(ap, format); - qvsnprintf(str, size, format, ap); - va_end(ap); - str[size - 1] = '\0'; - - return res; -} - -/*! \internal Invoke a method of the object without generating warning if the method does not exist */ static void invokeMethod(QObject *obj, const char *methodName) |