summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/profiler/CallIdentifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/profiler/CallIdentifier.h')
-rw-r--r--JavaScriptCore/profiler/CallIdentifier.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/JavaScriptCore/profiler/CallIdentifier.h b/JavaScriptCore/profiler/CallIdentifier.h
index ba48c55..f2d04fc 100644
--- a/JavaScriptCore/profiler/CallIdentifier.h
+++ b/JavaScriptCore/profiler/CallIdentifier.h
@@ -44,7 +44,7 @@ namespace JSC {
CallIdentifier(const UString& name, const UString& url, int lineNumber)
: m_name(name)
- , m_url(url)
+ , m_url(!url.isNull() ? url : "")
, m_lineNumber(lineNumber)
{
}
@@ -71,7 +71,7 @@ namespace JSC {
#ifndef NDEBUG
operator const char*() const { return c_str(); }
- const char* c_str() const { return m_name.UTF8String().c_str(); }
+ const char* c_str() const { return m_name.UTF8String().data(); }
#endif
};