Title: [89906] trunk/Source/_javascript_Core
- Revision
- 89906
- Author
- [email protected]
- Date
- 2011-06-28 01:53:59 -0700 (Tue, 28 Jun 2011)
Log Message
2011-06-28 Shinya Kawanaka <[email protected]>
Reviewed by Kent Tamura.
Add const to show() method in WTFString and AtomicString.
https://bugs.webkit.org/show_bug.cgi?id=63515
The lack of const in show() method is painful when
doing something like printf-debug.
* wtf/text/AtomicString.cpp:
(WTF::AtomicString::show):
* wtf/text/AtomicString.h:
* wtf/text/WTFString.cpp:
(String::show):
* wtf/text/WTFString.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (89905 => 89906)
--- trunk/Source/_javascript_Core/ChangeLog 2011-06-28 08:48:12 UTC (rev 89905)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-06-28 08:53:59 UTC (rev 89906)
@@ -1,3 +1,20 @@
+2011-06-28 Shinya Kawanaka <[email protected]>
+
+ Reviewed by Kent Tamura.
+
+ Add const to show() method in WTFString and AtomicString.
+ https://bugs.webkit.org/show_bug.cgi?id=63515
+
+ The lack of const in show() method is painful when
+ doing something like printf-debug.
+
+ * wtf/text/AtomicString.cpp:
+ (WTF::AtomicString::show):
+ * wtf/text/AtomicString.h:
+ * wtf/text/WTFString.cpp:
+ (String::show):
+ * wtf/text/WTFString.h:
+
2011-06-27 Ryosuke Niwa <[email protected]>
Build fix attempt after r89885.
Modified: trunk/Source/_javascript_Core/wtf/text/AtomicString.cpp (89905 => 89906)
--- trunk/Source/_javascript_Core/wtf/text/AtomicString.cpp 2011-06-28 08:48:12 UTC (rev 89905)
+++ trunk/Source/_javascript_Core/wtf/text/AtomicString.cpp 2011-06-28 08:53:59 UTC (rev 89906)
@@ -366,7 +366,7 @@
}
#ifndef NDEBUG
-void AtomicString::show()
+void AtomicString::show() const
{
m_string.show();
}
Modified: trunk/Source/_javascript_Core/wtf/text/AtomicString.h (89905 => 89906)
--- trunk/Source/_javascript_Core/wtf/text/AtomicString.h 2011-06-28 08:48:12 UTC (rev 89905)
+++ trunk/Source/_javascript_Core/wtf/text/AtomicString.h 2011-06-28 08:53:59 UTC (rev 89906)
@@ -114,7 +114,7 @@
static AtomicString fromUTF8(const char*);
#ifndef NDEBUG
- void show();
+ void show() const;
#endif
private:
String m_string;
Modified: trunk/Source/_javascript_Core/wtf/text/WTFString.cpp (89905 => 89906)
--- trunk/Source/_javascript_Core/wtf/text/WTFString.cpp 2011-06-28 08:48:12 UTC (rev 89905)
+++ trunk/Source/_javascript_Core/wtf/text/WTFString.cpp 2011-06-28 08:53:59 UTC (rev 89906)
@@ -964,7 +964,7 @@
Vector<char> asciiDebug(StringImpl* impl);
Vector<char> asciiDebug(String& string);
-void String::show()
+void String::show() const
{
fprintf(stderr, "%s\n", asciiDebug(impl()).data());
}
Modified: trunk/Source/_javascript_Core/wtf/text/WTFString.h (89905 => 89906)
--- trunk/Source/_javascript_Core/wtf/text/WTFString.h 2011-06-28 08:48:12 UTC (rev 89905)
+++ trunk/Source/_javascript_Core/wtf/text/WTFString.h 2011-06-28 08:53:59 UTC (rev 89906)
@@ -348,7 +348,7 @@
WTF_EXPORT_PRIVATE bool isHashTableDeletedValue() const { return m_impl.isHashTableDeletedValue(); }
#ifndef NDEBUG
- void show();
+ void show() const;
#endif
private:
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes