Changeset 24694 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jul 27, 2007, 1:29:55 AM (18 years ago)
Author:
hausmann
Message:

Replace the use of snprintf with QByteArray to compile under msvc 2005 express.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r24693 r24694  
     12007-07-27  Simon Hausmann  <[email protected]>
     2
     3        Done with and reviewed by Lars and Zack.
     4
     5        Replace the use of snprintf with QByteArray to compile under msvc 2005 express.
     6
     7        * bindings/qt/qt_instance.cpp:
     8        (KJS::Bindings::QtInstance::stringValue):
     9
    1102007-07-27  Simon Hausmann  <[email protected]>
    211
  • trunk/JavaScriptCore/bindings/qt/qt_instance.cpp

    r23483 r24694  
    154154JSValue* QtInstance::stringValue() const
    155155{
    156     char buf[1024];
    157     snprintf(buf, sizeof(buf), "QObject %p (%s)", _object.operator->(), _object->metaObject()->className());
    158     return jsString(buf);
     156    QByteArray buf;
     157    buf = "QObject ";
     158    buf.append(QByteArray::number(quintptr(_object.operator->())));
     159    buf.append(" (");
     160    buf.append(_object->metaObject()->className());
     161    buf.append(")");
     162    return jsString(buf.constData());
    159163}
    160164
Note: See TracChangeset for help on using the changeset viewer.