Index: Source/core/rendering/style/QuotesData.cpp |
diff --git a/Source/core/rendering/style/QuotesData.cpp b/Source/core/rendering/style/QuotesData.cpp |
index a6ef8e9e120745ee3fea36f560774809dcfb00c2..19fadeed7f24a86a871012c93489a11891d50943 100644 |
--- a/Source/core/rendering/style/QuotesData.cpp |
+++ b/Source/core/rendering/style/QuotesData.cpp |
@@ -64,13 +64,9 @@ const String QuotesData::getCloseQuote(int index) const |
return m_quotePairs.at(index).second; |
} |
-bool QuotesData::equals(const QuotesData* a, const QuotesData* b) |
+bool QuotesData::operator==(const QuotesData& a) |
{ |
- if (a == b) |
- return true; |
- if (!a || !b) |
- return false; |
- return a->m_quotePairs == b->m_quotePairs; |
+ return this->m_quotePairs == a.m_quotePairs; |
Sikugu_
2014/04/10 15:08:00
you can use m_quotePairs directly
no need to use
patro
2014/04/11 05:00:22
Done.
|
} |
} // namespace WebCore |