Changeset 24694 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jul 27, 2007, 1:29:55 AM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r24693 r24694 1 2007-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 1 10 2007-07-27 Simon Hausmann <[email protected]> 2 11 -
trunk/JavaScriptCore/bindings/qt/qt_instance.cpp
r23483 r24694 154 154 JSValue* QtInstance::stringValue() const 155 155 { 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()); 159 163 } 160 164
Note:
See TracChangeset
for help on using the changeset viewer.