Changeset 148993 in webkit
- Timestamp:
- Apr 23, 2013 2:24:57 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r148992 r148993 1 2013-04-23 Benjamin Poulain <benjamin@webkit.org> 2 3 Minor String usage fixes in WebCore/platform 4 https://bugs.webkit.org/show_bug.cgi?id=115021 5 6 Reviewed by Andreas Kling. 7 8 Use ASCIILiteral when possible + minor fixes. 9 10 * platform/ContentType.cpp: 11 (WebCore::ContentType::codecs): 12 * platform/ContentType.h: 13 (ContentType): 14 * platform/Decimal.cpp: 15 (WebCore::Decimal::toString): 16 * platform/KURL.cpp: 17 (WebCore::KURL::setProtocol): 18 1 19 2013-04-23 Dirk Schulze <krit@webkit.org> 2 20 -
trunk/Source/WebCore/platform/ContentType.cpp
r117662 r148993 1 1 /* 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2008, 2013 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) 4 4 * Copyright (C) 2009 Google Inc. All rights reserved. … … 79 79 Vector<String> ContentType::codecs() const 80 80 { 81 String codecsParameter = parameter( "codecs");81 String codecsParameter = parameter(ASCIILiteral("codecs")); 82 82 83 83 if (codecsParameter.isEmpty()) … … 85 85 86 86 Vector<String> codecs; 87 codecsParameter.split( ",", codecs);87 codecsParameter.split(',', codecs); 88 88 for (size_t i = 0; i < codecs.size(); ++i) 89 89 codecs[i] = codecs[i].simplifyWhiteSpace(); -
trunk/Source/WebCore/platform/ContentType.h
r127757 r148993 1 1 /* 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.2 * Copyright (C) 2006, 2013 Apple Computer, Inc. All rights reserved. 3 3 * Copyright (C) 2009 Google Inc. All rights reserved. 4 4 * … … 36 36 explicit ContentType(const String& type); 37 37 38 String parameter 38 String parameter(const String& parameterName) const; 39 39 String type() const; 40 40 Vector<String> codecs() const; -
trunk/Source/WebCore/platform/Decimal.cpp
r143232 r148993 1 1 /* 2 2 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 946 947 switch (m_data.formatClass()) { 947 948 case EncodedData::ClassInfinity: 948 return sign() ? "-Infinity" : "Infinity";949 return sign() ? ASCIILiteral("-Infinity") : ASCIILiteral("Infinity"); 949 950 950 951 case EncodedData::ClassNaN: 951 return "NaN";952 return ASCIILiteral("NaN"); 952 953 953 954 case EncodedData::ClassNormal: … … 957 958 default: 958 959 ASSERT_NOT_REACHED(); 959 return "";960 return emptyString(); 960 961 } 961 962 -
trunk/Source/WebCore/platform/KURL.cpp
r148921 r148993 1 1 /* 2 * Copyright (C) 2004, 2007, 2008, 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2004, 2007, 2008, 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 4 4 * … … 701 701 702 702 if (!m_isValid) { 703 parse(newProtocol + ":"+ m_string);703 parse(newProtocol + ':' + m_string); 704 704 return true; 705 705 }
Note: See TracChangeset
for help on using the changeset viewer.