Skip to content
Permalink
Browse files
-Wattributes warnings from AtomString.cpp and WTFString.cpp
https://bugs.webkit.org/show_bug.cgi?id=240358

Patch by Michael Catanzaro <mcatanzaro@gnome.org> on 2022-05-12
Reviewed by Yusuke Suzuki.

* Source/WTF/wtf/text/AtomString.cpp:
* Source/WTF/wtf/text/WTFString.cpp:

Canonical link: https://commits.webkit.org/250509@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
mcatanzaro authored and webkit-commit-queue committed May 13, 2022
1 parent c5b9d4f commit 0e2b64f05c8842e08c3eb4e5a4b95bc8f35cfd28
Showing with 14 additions and 4 deletions.
  1. +10 −0 Source/WTF/ChangeLog
  2. +2 −2 Source/WTF/wtf/text/AtomString.cpp
  3. +2 −2 Source/WTF/wtf/text/WTFString.cpp
@@ -1,3 +1,13 @@
2022-05-12 Michael Catanzaro <mcatanzaro@redhat.com>

-Wattributes warnings from AtomString.cpp and WTFString.cpp
https://bugs.webkit.org/show_bug.cgi?id=240358

Reviewed by Yusuke Suzuki.

* wtf/text/AtomString.cpp:
* wtf/text/WTFString.cpp:

2022-05-11 Kate Cheney <katherine_cheney@apple.com>

Mail compose: right clicking an image attachment selects it
@@ -32,8 +32,8 @@

namespace WTF {

WTF_EXPORT_PRIVATE const StaticAtomString nullAtomData { nullptr };
WTF_EXPORT_PRIVATE const StaticAtomString emptyAtomData { &StringImpl::s_emptyAtomString };
const StaticAtomString nullAtomData { nullptr };
const StaticAtomString emptyAtomData { &StringImpl::s_emptyAtomString };

template<AtomString::CaseConvertType type>
ALWAYS_INLINE AtomString AtomString::convertASCIICase() const
@@ -635,8 +635,8 @@ float charactersToFloat(const UChar* data, size_t length, size_t& parsedLength)
return static_cast<float>(toDoubleType<UChar, TrailingJunkPolicy::Allow>(data, length, nullptr, parsedLength));
}

WTF_EXPORT_PRIVATE const StaticString nullStringData { nullptr };
WTF_EXPORT_PRIVATE const StaticString emptyStringData { &StringImpl::s_emptyAtomString };
const StaticString nullStringData { nullptr };
const StaticString emptyStringData { &StringImpl::s_emptyAtomString };

} // namespace WTF

0 comments on commit 0e2b64f

Please sign in to comment.