diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-30 00:53:28 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-30 04:54:44 (GMT) |
commit | 79ed97b8298e3c7e3c7d266c905024affeba7258 (patch) | |
tree | 9306b4a8bcaface2c243217aa3bc527aa553ef2f /src/testlib/qtestxunitstreamer.h | |
parent | a92117be4323e26efe3f13b5c624e5010a7cd26a (diff) | |
download | Qt-79ed97b8298e3c7e3c7d266c905024affeba7258.zip Qt-79ed97b8298e3c7e3c7d266c905024affeba7258.tar.gz Qt-79ed97b8298e3c7e3c7d266c905024affeba7258.tar.bz2 |
Make QTestBasicStreamer use dynamically allocated strings.
This commit contains the bare minimum needed for the API to use dynamic
allocation; some parts of the code still use static buffers and
therefore have constraints on the size of output messages.
Task: 253861
Reviewed-by: Michael Goddard
Diffstat (limited to 'src/testlib/qtestxunitstreamer.h')
-rw-r--r-- | src/testlib/qtestxunitstreamer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testlib/qtestxunitstreamer.h b/src/testlib/qtestxunitstreamer.h index 9817fd3..044307f 100644 --- a/src/testlib/qtestxunitstreamer.h +++ b/src/testlib/qtestxunitstreamer.h @@ -58,10 +58,10 @@ class QTestXunitStreamer: public QTestBasicStreamer QTestXunitStreamer(); ~QTestXunitStreamer(); - void formatStart(const QTestElement *element = 0, char *formatted = 0) const; - void formatEnd(const QTestElement *element = 0, char *formatted = 0) const; - void formatAfterAttributes(const QTestElement *element = 0, char *formatted = 0) const; - void formatAttributes(const QTestElement *element = 0, const QTestElementAttribute *attribute = 0, char *formatted = 0) const; + void formatStart(const QTestElement *element, char **formatted) const; + void formatEnd(const QTestElement *element, char **formatted) const; + void formatAfterAttributes(const QTestElement *element, char **formatted) const; + void formatAttributes(const QTestElement *element, const QTestElementAttribute *attribute, char **formatted) const; void output(QTestElement *element) const; void outputElements(QTestElement *element, bool isChildElement = false) const; |