Ignore:
Timestamp:
Jul 20, 2011, 11:48:57 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

QProcess: Make qt_prettyDebug() global instead of cloning it.

This also fixes the bug in the cloned copy that would always print the whole buffer regardless of the maximum size limitation passed in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/io/qprocess.cpp

    r846 r902  
    5151
    5252QT_BEGIN_NAMESPACE
     53
    5354/*
    5455    Returns a human readable representation of the first \a len
    5556    characters in \a data.
    5657*/
    57 static QByteArray qt_prettyDebug(const char *data, int len, int maxSize)
     58QByteArray qt_prettyDebug(const char *data, int len, int maxSize)
    5859{
    5960    if (!data) return "(null)";
Note: See TracChangeset for help on using the changeset viewer.