Skip to content

Instantly share code, notes, and snippets.

@Alexpux
Created July 16, 2019 13:00
Show Gist options
  • Save Alexpux/d1cb2894ab4c2bf33ba33dfae74d9ede to your computer and use it in GitHub Desktop.
Save Alexpux/d1cb2894ab4c2bf33ba33dfae74d9ede to your computer and use it in GitHub Desktop.
Patch qtwebkit gcc9
diff --git a/Source/WebCore/accessibility/AXObjectCache.cpp b/Source/WebCore/accessibility/AXObjectCache.cpp
index 3998f313e0f6..31b8a2b78c32 100644
--- a/Source/WebCore/accessibility/AXObjectCache.cpp
+++ b/Source/WebCore/accessibility/AXObjectCache.cpp
@@ -1707,7 +1707,9 @@ CharacterOffset AXObjectCache::startOrEndCharacterOffsetForRange(RefPtr<Range> r
void AXObjectCache::startOrEndTextMarkerDataForRange(TextMarkerData& textMarkerData, RefPtr<Range> range, bool isStart)
{
- memset(&textMarkerData, 0, sizeof(TextMarkerData));
+ // This memory must be zero'd so instances of TextMarkerData can be tested for byte-equivalence.
+ // Warning: This is risky and bad because TextMarkerData is a nontrivial type.
+ memset(static_cast<void*>(&textMarkerData), 0, sizeof(TextMarkerData));
CharacterOffset characterOffset = startOrEndCharacterOffsetForRange(range, isStart);
if (characterOffset.isNull())
@@ -1766,7 +1766,10 @@ CharacterOffset AXObjectCache::characterOffsetForNodeAndOffset(Node& node, int o
void AXObjectCache::textMarkerDataForCharacterOffset(TextMarkerData& textMarkerData, const CharacterOffset& characterOffset)
{
- memset(&textMarkerData, 0, sizeof(TextMarkerData));
+ // This memory must be zero'd so instances of TextMarkerData can be tested for byte-equivalence.
+ // Warning: This is risky and bad because TextMarkerData is a nontrivial type.
+ memset(static_cast<void*>(&textMarkerData), 0, sizeof(TextMarkerData));
+
setTextMarkerDataWithCharacterOffset(textMarkerData, characterOffset);
}
@@ -1877,7 +1877,8 @@ std::optional<TextMarkerData> AXObjectCache::textMarkerDataForVisiblePosition(co
{
// This memory must be bzero'd so instances of TextMarkerData can be tested for byte-equivalence.
// This also allows callers to check for failure by looking at textMarkerData upon return.
- memset(&textMarkerData, 0, sizeof(TextMarkerData));
+ // Warning: This is risky and bad because TextMarkerData is a nontrivial type.
+ memset(static_cast<void*>(&textMarkerData), 0, sizeof(TextMarkerData));
if (visiblePos.isNull())
return;
diff --git a/Source/WebCore/css/CSSSelectorList.cpp b/Source/WebCore/css/CSSSelectorList.cpp
index 57efa67d0b3e..4fc69838c710 100644
--- a/Source/WebCore/css/CSSSelectorList.cpp
+++ b/Source/WebCore/css/CSSSelectorList.cpp
@@ -67,7 +67,7 @@ void CSSSelectorList::adoptSelectorVector(Vector<std::unique_ptr<CSSParserSelect
{
// Move item from the parser selector vector into m_selectorArray without invoking destructor (Ugh.)
CSSSelector* currentSelector = current->releaseSelector().release();
- memcpy(&m_selectorArray[arrayIndex], currentSelector, sizeof(CSSSelector));
+ memcpy(static_cast<void*>(&m_selectorArray[arrayIndex]), static_cast<void*>(currentSelector), sizeof(CSSSelector));
// Free the underlying memory without invoking the destructor.
operator delete (currentSelector);
diff --git a/Source/WebCore/platform/graphics/Gradient.cpp b/Source/WebCore/platform/graphics/Gradient.cpp
index e7f8c6710153..8994c021edfb 100644
--- a/Source/WebCore/platform/graphics/Gradient.cpp
+++ b/Source/WebCore/platform/graphics/Gradient.cpp
@@ -213,7 +213,8 @@ unsigned Gradient::hash() const
COMPILE_ASSERT(!(sizeof(ColorStop) % 2), Color_stop_size_should_be_multiple_of_two);
// Ensure that any padding in the struct is zero-filled, so it will not affect the hash value.
- memset(&parameters, 0, sizeof(parameters));
+ // FIXME: This is asking for trouble, because it is a nontrivial type.
+ memset(static_cast<void*>(&parameters), 0, sizeof(parameters));
WTF::switchOn(m_data,
[&parameters] (const LinearData& data) {
diff --git a/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp b/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
index d3fc934fe4be..bd9cd0009afb 100644
--- a/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
+++ b/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
@@ -48,7 +48,7 @@ FontCustomPlatformData::FontCustomPlatformData(FT_Face freeTypeFace, SharedBuffe
// this cairo_font_face_t is destroyed, it cleans up the FreeType face as well.
static cairo_user_data_key_t freeTypeFaceKey;
cairo_font_face_set_user_data(m_fontFace, &freeTypeFaceKey, freeTypeFace,
- reinterpret_cast<cairo_destroy_func_t>(FT_Done_Face));
+ reinterpret_cast<cairo_destroy_func_t>(reinterpret_cast<GCallback>(FT_Done_Face)));
}
FontCustomPlatformData::~FontCustomPlatformData()
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/assembler/AssemblerBuffer.h qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/assembler/AssemblerBuffer.h
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/assembler/AssemblerBuffer.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/assembler/AssemblerBuffer.h 2019-07-16 09:46:13.699616600 +0300
@@ -163,7 +163,7 @@
unsigned debugOffset() { return m_index; }
- AssemblerData releaseAssemblerData() { return WTFMove(m_storage); }
+ AssemblerData releaseAssemblerData() { return m_storage; }
protected:
template<typename IntegralType>
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/b3/B3Procedure.h qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/b3/B3Procedure.h
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/b3/B3Procedure.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/b3/B3Procedure.h 2019-07-16 09:46:40.182471400 +0300
@@ -229,7 +229,7 @@
// just keeps alive things like the double constant pool and switch lookup tables. If this sounds
// confusing, you should probably be using the B3::Compilation API to compile code. If you use
// that API, then you don't have to worry about this.
- std::unique_ptr<OpaqueByproducts> releaseByproducts() { return WTFMove(m_byproducts); }
+ std::unique_ptr<OpaqueByproducts> releaseByproducts() { return m_byproducts; }
// This gives you direct access to Code. However, the idea is that clients of B3 shouldn't have to
// call this. So, Procedure has some methods (below) that expose some Air::Code functionality.
@@ -243,7 +243,7 @@
const RegisterAtOffsetList& calleeSaveRegisters() const;
PCToOriginMap& pcToOriginMap() { return m_pcToOriginMap; }
- PCToOriginMap releasePCToOriginMap() { return WTFMove(m_pcToOriginMap); }
+ PCToOriginMap releasePCToOriginMap() { return m_pcToOriginMap; }
private:
friend class BlockInsertionSet;
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/b3/B3ValueRep.h qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/b3/B3ValueRep.h
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/b3/B3ValueRep.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/b3/B3ValueRep.h 2019-07-16 09:45:00.192287500 +0300
@@ -256,7 +256,7 @@
U()
{
- memset(this, 0, sizeof(*this));
+ memset(static_cast<void*>(this), 0, sizeof(*this));
}
} u;
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/bindings/ScriptValue.cpp qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/bindings/ScriptValue.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/bindings/ScriptValue.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/bindings/ScriptValue.cpp 2019-07-16 09:45:00.192287500 +0300
@@ -132,7 +132,7 @@
return nullptr;
inspectorArray->pushValue(WTFMove(elementValue));
}
- return WTFMove(inspectorArray);
+ return inspectorArray;
}
Ref<InspectorObject> inspectorObject = InspectorObject::create();
JSObject* object = value.getObject();
@@ -146,7 +146,7 @@
return nullptr;
inspectorObject->setValue(name.string(), WTFMove(inspectorValue));
}
- return WTFMove(inspectorObject);
+ return inspectorObject;
}
ASSERT_NOT_REACHED();
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp 2019-07-16 09:47:14.440131600 +0300
@@ -417,7 +417,7 @@
HashMap<Node*, Allocation> takeEscapees()
{
- return WTFMove(m_escapees);
+ return m_escapees;
}
void escape(Node* node)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp 2019-07-16 09:45:00.192287500 +0300
@@ -443,7 +443,7 @@
.setLineNumber(actualLineNumber)
.release();
location->setColumnNumber(actualColumnNumber);
- return WTFMove(location);
+ return location;
}
void InspectorDebuggerAgent::searchInContent(ErrorString& error, const String& scriptIDStr, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>>& results)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py 2019-07-16 09:45:00.192287500 +0300
@@ -237,8 +237,9 @@
COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
COMPILE_ASSERT(sizeof(${objectType}) == sizeof(InspectorObject), cannot_cast);
- Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<${objectType}>*>(&result));
+ Ref<InspectorObject> inspectorResult = m_result.releaseNonNull();
+ auto result = WTFMove(*reinterpret_cast<Ref<${objectType}>*>(&inspectorResult));
+ return result;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result 2019-07-16 09:47:51.677397000 +0300
@@ -714,7 +714,8 @@
COMPILE_ASSERT(sizeof(Error) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ return res2;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result 2019-07-16 09:48:07.402224600 +0300
@@ -615,7 +615,8 @@
COMPILE_ASSERT(sizeof(Error) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ return res2;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/events-with-optional-parameters.json-result 2019-07-16 09:48:27.401459800 +0300
@@ -457,7 +457,8 @@
COMPILE_ASSERT(sizeof(Error) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ return res2;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/generate-domains-with-feature-guards.json-result 2019-07-16 09:48:42.736286700 +0300
@@ -508,7 +508,8 @@
COMPILE_ASSERT(sizeof(NetworkError) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<NetworkError>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<NetworkError>*>(&result));
+ return res2;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result 2019-07-16 10:17:31.527331600 +0300
@@ -386,7 +386,8 @@
COMPILE_ASSERT(sizeof(KeyPath) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<KeyPath>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<KeyPath>*>(&result));
+ return res2;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result 2019-07-16 09:49:26.650363800 +0300
@@ -400,7 +400,8 @@
COMPILE_ASSERT(sizeof(Error) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
+ return res2;
}
};
@@ -448,7 +448,8 @@
COMPILE_ASSERT(sizeof(OptionalParameterBundle) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<OptionalParameterBundle>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<OptionalParameterBundle>*>(&result));
+ return res2;
}
};
@@ -585,7 +585,8 @@
COMPILE_ASSERT(sizeof(ParameterBundle) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<ParameterBundle>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<ParameterBundle>*>(&result));
+ return res2;
}
};
@@ -679,7 +679,8 @@
COMPILE_ASSERT(sizeof(ObjectWithPropertyNameConflicts) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<ObjectWithPropertyNameConflicts>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<ObjectWithPropertyNameConflicts>*>(&result));
+ return res2;
}
};
@@ -781,7 +781,8 @@
COMPILE_ASSERT(sizeof(ParameterBundle) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<ParameterBundle>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<ParameterBundle>*>(&result));
+ return res2;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result 2019-07-16 09:49:56.118815600 +0300
@@ -425,7 +425,8 @@
COMPILE_ASSERT(sizeof(TypeNeedingCast) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<TypeNeedingCast>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<TypeNeedingCast>*>(&result));
+ return res2;
}
};
@@ -490,7 +490,8 @@
COMPILE_ASSERT(sizeof(RecursiveObject1) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<RecursiveObject1>*>(&result));
+ auto res2 = WTFMove(*reinterpret_cast<Ref<RecursiveObject1>*>(&result));
+ return res2;
}
};
@@ -541,7 +541,8 @@
COMPILE_ASSERT(sizeof(RecursiveObject2) == sizeof(InspectorObject), cannot_cast);
Ref<InspectorObject> result = m_result.releaseNonNull();
- return WTFMove(*reinterpret_cast<Ref<RecursiveObject2>*>(&result));
+ aute res2 = WTFMove(*reinterpret_cast<Ref<RecursiveObject2>*>(&result));
+ return res2;
}
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/profiler/ProfileNode.h qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/profiler/ProfileNode.h
--- qtwebkit-5.212.0-alpha3-orig/Source/JavaScriptCore/profiler/ProfileNode.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/profiler/ProfileNode.h 2019-07-16 09:50:38.909690700 +0300
@@ -183,7 +183,7 @@
m_data.selfAndTotalTimes.set(node, std::make_pair(selfTime, totalTime));
}
- ProfileNode::ProfileSubtreeData returnValue() { return WTFMove(m_data); }
+ ProfileNode::ProfileSubtreeData returnValue() { return m_data; }
ProfileNode::ProfileSubtreeData m_data;
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp 2019-07-16 09:51:52.479420000 +0300
@@ -151,7 +151,7 @@
memcpy(result->iv.data(), ivData.first, ivData.second);
- return WTFMove(result);
+ return result;
}
static std::unique_ptr<CryptoAlgorithmParameters> createAesKeyGenParams(ExecState* exec, JSValue value)
@@ -169,7 +169,7 @@
result->length = toUInt16(exec, lengthValue, EnforceRange);
- return WTFMove(result);
+ return result;
}
static std::unique_ptr<CryptoAlgorithmParameters> createHmacParams(ExecState* exec, JSValue value)
@@ -187,7 +187,7 @@
return nullptr;
}
- return WTFMove(result);
+ return result;
}
static std::unique_ptr<CryptoAlgorithmParameters> createHmacKeyParams(ExecState* exec, JSValue value)
@@ -209,7 +209,7 @@
if (exec->hadException())
return nullptr;
- return WTFMove(result);
+ return result;
}
static std::unique_ptr<CryptoAlgorithmParameters> createRsaKeyGenParams(ExecState* exec, JSValue value)
@@ -244,7 +244,7 @@
result->hasHash = getHashAlgorithm(jsDictionary, result->hash, HashRequirement::Optional);
- return WTFMove(result);
+ return result;
}
static std::unique_ptr<CryptoAlgorithmParameters> createRsaKeyParamsWithHash(ExecState*, JSValue)
@@ -274,7 +274,7 @@
result->hasLabel = !labelValue.isUndefinedOrNull();
if (!result->hasLabel)
- return WTFMove(result);
+ return result;
CryptoOperationData labelData;
if (!cryptoOperationDataFromJSValue(exec, labelValue, labelData)) {
@@ -284,7 +284,7 @@
result->label.append(labelData.first, labelData.second);
- return WTFMove(result);
+ return result;
}
static std::unique_ptr<CryptoAlgorithmParameters> createRsaSsaParams(ExecState* exec, JSValue value)
@@ -302,7 +302,7 @@
return nullptr;
}
- return WTFMove(result);
+ return result;
}
std::unique_ptr<CryptoAlgorithmParameters> JSCryptoAlgorithmDictionary::createParametersForEncrypt(ExecState* exec, CryptoAlgorithmIdentifier algorithm, JSValue value)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp 2019-07-16 09:52:09.374249600 +0300
@@ -152,7 +152,7 @@
{
std::unique_ptr<CryptoAlgorithmHmacParams> hmacParameters = std::make_unique<CryptoAlgorithmHmacParams>();
hmacParameters->hash = hashFunction;
- return WTFMove(hmacParameters);
+ return hmacParameters;
}
static std::unique_ptr<CryptoAlgorithmParameters> createRSAKeyParametersWithHash(CryptoAlgorithmIdentifier hashFunction)
@@ -160,7 +160,7 @@
std::unique_ptr<CryptoAlgorithmRsaKeyParamsWithHash> rsaKeyParameters = std::make_unique<CryptoAlgorithmRsaKeyParamsWithHash>();
rsaKeyParameters->hasHash = true;
rsaKeyParameters->hash = hashFunction;
- return WTFMove(rsaKeyParameters);
+ return rsaKeyParameters;
}
bool JSCryptoKeySerializationJWK::reconcileAlgorithm(std::unique_ptr<CryptoAlgorithm>& suggestedAlgorithm, std::unique_ptr<CryptoAlgorithmParameters>& suggestedParameters) const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/CSSComputedStyleDeclaration.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2019-07-16 09:45:00.207887500 +0300
@@ -884,7 +884,7 @@
// FIXME: Need to print out individual functions (https://bugs.webkit.org/show_bug.cgi?id=23924)
auto list = CSSValueList::createSpaceSeparated();
list.get().append(matrixTransformValue(transform, style));
- return WTFMove(list);
+ return list;
}
static inline Ref<CSSPrimitiveValue> adjustLengthForZoom(double length, const RenderStyle& style, AdjustPixelValuesForComputedStyle adjust)
@@ -913,7 +913,7 @@
RefPtr<CSSPrimitiveValue> color = cssValuePool.createColorValue(currShadowData->color().rgb());
list.get().prepend(CSSShadowValue::create(x.release(), y.release(), blur.release(), spread.release(), style.release(), color.release()));
}
- return WTFMove(list);
+ return list;
}
Ref<CSSValue> ComputedStyleExtractor::valueForFilter(const RenderStyle& style, const FilterOperations& filterOperations, AdjustPixelValuesForComputedStyle adjust)
@@ -1005,7 +1005,7 @@
list.get().append(filterValue.releaseNonNull());
}
- return WTFMove(list);
+ return list;
}
#if ENABLE(CSS_GRID_LAYOUT)
@@ -1095,7 +1095,7 @@
// Those are the trailing <ident>* allowed in the syntax.
addValuesForNamedGridLinesAtIndex(orderedNamedGridLines, insertionIndex, list.get());
- return WTFMove(list);
+ return list;
}
static Ref<CSSValue> valueForGridPosition(const GridPosition& position)
@@ -1116,7 +1116,7 @@
if (!position.namedGridLine().isNull())
list.get().append(cssValuePool.createValue(position.namedGridLine(), CSSPrimitiveValue::CSS_STRING));
- return WTFMove(list);
+ return list;
}
#endif
@@ -1161,7 +1161,7 @@
list.get().append(zoomAdjustedPixelValueForLength(point, style));
if (points->hasRepeat)
list.get().append(CSSValuePool::singleton().createValue(LengthRepeat::create(zoomAdjustedPixelValueForLength(points->repeatOffset, style))));
- return WTFMove(list);
+ return list;
}
static Ref<CSSValue> scrollSnapCoordinates(RenderStyle& style, const Vector<LengthSize>& coordinates)
@@ -1178,7 +1178,7 @@
list.get().append(WTFMove(pair));
}
- return WTFMove(list);
+ return list;
}
#endif
@@ -1207,7 +1207,7 @@
}
}
- return WTFMove(list);
+ return list;
}
static inline void appendLigaturesValue(CSSValueList& list, FontVariantLigatures value, CSSValueID yesValue, CSSValueID noValue)
@@ -1238,7 +1238,7 @@
appendLigaturesValue(valueList, discretionary, CSSValueDiscretionaryLigatures, CSSValueNoDiscretionaryLigatures);
appendLigaturesValue(valueList, historical, CSSValueHistoricalLigatures, CSSValueNoHistoricalLigatures);
appendLigaturesValue(valueList, contextualAlternates, CSSValueContextual, CSSValueNoContextual);
- return WTFMove(valueList);
+ return valueList;
}
static Ref<CSSValue> fontVariantPositionPropertyValue(FontVariantPosition position)
@@ -1332,7 +1332,7 @@
if (slashedZero == FontVariantNumericSlashedZero::Yes)
valueList->append(cssValuePool.createIdentifierValue(CSSValueSlashedZero));
- return WTFMove(valueList);
+ return valueList;
}
static Ref<CSSValue> fontVariantAlternatesPropertyValue(FontVariantAlternates alternates)
@@ -1393,7 +1393,7 @@
if (ruby == FontVariantEastAsianRuby::Yes)
valueList->append(cssValuePool.createIdentifierValue(CSSValueRuby));
- return WTFMove(valueList);
+ return valueList;
}
static Ref<CSSValueList> getDelayValue(const AnimationList* animList)
@@ -1727,7 +1727,7 @@
auto list = CSSValueList::createSpaceSeparated();
list.get().append(cssValuePool.createValue(xRepeat));
list.get().append(cssValuePool.createValue(yRepeat));
- return WTFMove(list);
+ return list;
}
static Ref<CSSValue> fillSourceTypeToCSSValue(EMaskSourceType type)
@@ -1755,7 +1755,7 @@
auto list = CSSValueList::createSpaceSeparated();
list.get().append(zoomAdjustedPixelValueForLength(fillSize.size.width(), style));
list.get().append(zoomAdjustedPixelValueForLength(fillSize.size.height(), style));
- return WTFMove(list);
+ return list;
}
static Ref<CSSValue> altTextToCSSValue(const RenderStyle* style)
@@ -2024,7 +2024,7 @@
break;
}
- return WTFMove(list);
+ return list;
}
static Ref<CSSPrimitiveValue> fontWeightFromStyle(RenderStyle* style)
@@ -2705,7 +2705,7 @@
list->append(WTFMove(value));
return list;
}
- return WTFMove(value);
+ return value;
}
#if ENABLE(CURSOR_VISIBILITY)
case CSSPropertyWebkitCursorVisibility:
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/CSSImageValue.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSImageValue.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/CSSImageValue.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSImageValue.cpp 2019-07-16 09:52:34.927094500 +0300
@@ -118,7 +118,7 @@
// NOTE: We expose CSSImageValues as URI primitive values in CSSOM to maintain old behavior.
Ref<CSSPrimitiveValue> uriValue = CSSPrimitiveValue::create(m_url, CSSPrimitiveValue::CSS_URI);
uriValue->setCSSOMSafe();
- return WTFMove(uriValue);
+ return uriValue;
}
bool CSSImageValue::knownToBeOpaque(const RenderElement* renderer) const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/CSSParser.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSParser.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/CSSParser.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/css/CSSParser.cpp 2019-07-16 09:53:25.174782800 +0300
@@ -1328,7 +1328,7 @@
valueList->append(value.releaseNonNull());
}
- return WTFMove(valueList);
+ return valueList;
}
CSSParser::ParseResult CSSParser::parseValue(MutableStyleProperties* declaration, CSSPropertyID propertyID, const String& string, bool important, CSSParserMode cssParserMode, StyleSheetContents* contextStyleSheet)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/FontVariantBuilder.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/css/FontVariantBuilder.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/FontVariantBuilder.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/css/FontVariantBuilder.cpp 2019-07-16 09:45:00.207887500 +0300
@@ -368,7 +368,7 @@
break;
}
- return WTFMove(list);
+ return list;
}
}
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/css/SVGCSSComputedStyleDeclaration.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -61,7 +61,7 @@
paintOrderList->append(WTFMove(stroke));
break;
}
- return WTFMove(paintOrderList);
+ return paintOrderList;
}
static RefPtr<CSSPrimitiveValue> glyphOrientationToCSSPrimitiveValue(EGlyphOrientation orientation)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/Attr.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/dom/Attr.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/Attr.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/dom/Attr.cpp 2019-07-16 09:54:56.326742900 +0300
@@ -141,7 +141,7 @@
{
Ref<Attr> clone = adoptRef(*new Attr(targetDocument, qualifiedName(), value()));
cloneChildNodes(clone);
- return WTFMove(clone);
+ return clone;
}
// DOM Section 1.1.1
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/Document.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/dom/Document.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/Document.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/dom/Document.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -3454,7 +3454,7 @@
cloneChildNodes(clone);
break;
}
- return WTFMove(clone);
+ return clone;
}
Ref<Document> Document::cloneDocumentWithoutChildren() const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/DocumentFragment.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/dom/DocumentFragment.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/DocumentFragment.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/dom/DocumentFragment.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -77,7 +77,7 @@
cloneChildNodes(clone);
break;
}
- return WTFMove(clone);
+ return clone;
}
void DocumentFragment::parseHTML(const String& source, Element* contextElement, ParserContentPolicy parserContentPolicy)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/MouseEvent.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/dom/MouseEvent.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/MouseEvent.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/dom/MouseEvent.cpp 2019-07-16 09:55:35.810412300 +0300
@@ -248,7 +248,7 @@
// Nullifies relatedTarget.
0);
clonedMouseEvent->setForce(force());
- return WTFMove(clonedMouseEvent);
+ return clonedMouseEvent;
}
} // namespace WebCore
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/PendingScript.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/dom/PendingScript.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/PendingScript.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/dom/PendingScript.cpp 2019-07-16 09:55:54.998446000 +0300
@@ -42,7 +42,7 @@
setCachedScript(nullptr);
m_watchingForLoad = false;
m_startingPosition = TextPosition::belowRangePosition();
- return WTFMove(m_element);
+ return m_element;
}
void PendingScript::setCachedScript(CachedScript* cachedScript)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/Text.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/dom/Text.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/dom/Text.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/dom/Text.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -83,7 +83,7 @@
if (renderer())
renderer()->setTextWithOffset(data(), 0, oldStr.length());
- return WTFMove(newText);
+ return newText;
}
static const Text* earliestLogicallyAdjacentTextNode(const Text* text)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/editing/TextIterator.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/editing/TextIterator.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/editing/TextIterator.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/editing/TextIterator.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -2481,7 +2481,7 @@
if (!rangeLocation && !rangeLength && it.atEnd()) {
resultRange->setStart(&textRunRange->startContainer(), 0);
resultRange->setEnd(&textRunRange->startContainer(), 0);
- return WTFMove(resultRange);
+ return resultRange;
}
for (; !it.atEnd(); it.advance()) {
@@ -2544,7 +2544,7 @@
if (rangeLength && rangeEnd > docTextPosition) // rangeEnd is out of bounds
resultRange->setEnd(&textRunRange->endContainer(), textRunRange->endOffset());
- return WTFMove(resultRange);
+ return resultRange;
}
bool TextIterator::getLocationAndLengthFromRange(Node* scope, const Range* range, size_t& location, size_t& length)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/fileapi/WebKitBlobBuilder.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/fileapi/WebKitBlobBuilder.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/fileapi/WebKitBlobBuilder.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/fileapi/WebKitBlobBuilder.cpp 2019-07-16 09:56:19.022488200 +0300
@@ -97,7 +97,7 @@
{
if (!m_appendableData.isEmpty())
m_items.append(BlobPart(WTFMove(m_appendableData)));
- return WTFMove(m_items);
+ return m_items;
}
} // namespace WebCore
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2019-07-16 09:57:07.366973100 +0300
@@ -1817,7 +1817,7 @@
Ref<CanvasGradient> gradient = CanvasGradient::create(FloatPoint(x0, y0), FloatPoint(x1, y1));
prepareGradientForDashboard(gradient.get());
- return WTFMove(gradient);
+ return gradient;
}
RefPtr<CanvasGradient> CanvasRenderingContext2D::createRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, ExceptionCode& ec)
@@ -1834,7 +1834,7 @@
Ref<CanvasGradient> gradient = CanvasGradient::create(FloatPoint(x0, y0), r0, FloatPoint(x1, y1), r1);
prepareGradientForDashboard(gradient.get());
- return WTFMove(gradient);
+ return gradient;
}
RefPtr<CanvasPattern> CanvasRenderingContext2D::createPattern(HTMLImageElement* imageElement,
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/HTMLPlugInImageElement.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/html/HTMLPlugInImageElement.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/HTMLPlugInImageElement.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/html/HTMLPlugInImageElement.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -210,7 +210,7 @@
if (displayState() == DisplayingSnapshot) {
auto renderSnapshottedPlugIn = createRenderer<RenderSnapshottedPlugIn>(*this, WTFMove(style));
renderSnapshottedPlugIn->updateSnapshot(m_snapshotImage);
- return WTFMove(renderSnapshottedPlugIn);
+ return renderSnapshottedPlugIn;
}
// Fallback content breaks the DOM->Renderer class relationship of this
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/HTMLTableElement.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/html/HTMLTableElement.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/HTMLTableElement.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/html/HTMLTableElement.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -241,13 +241,13 @@
Ref<HTMLTableRowElement> newRow = HTMLTableRowElement::create(document());
newBody->appendChild(newRow.copyRef(), ec);
appendChild(WTFMove(newBody), ec);
- return WTFMove(newRow);
+ return newRow;
}
}
Ref<HTMLTableRowElement> newRow = HTMLTableRowElement::create(document());
parent->insertBefore(newRow.copyRef(), row.get(), ec);
- return WTFMove(newRow);
+ return newRow;
}
void HTMLTableElement::deleteRow(int index, ExceptionCode& ec)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/HTMLTableRowElement.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/html/HTMLTableRowElement.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/HTMLTableRowElement.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/html/HTMLTableRowElement.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -123,7 +123,7 @@
n = children->item(index);
insertBefore(cell.copyRef(), n, ec);
}
- return WTFMove(cell);
+ return cell;
}
void HTMLTableRowElement::deleteCell(int index, ExceptionCode& ec)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/parser/HTMLTreeBuilder.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/html/parser/HTMLTreeBuilder.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/parser/HTMLTreeBuilder.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/html/parser/HTMLTreeBuilder.cpp 2019-07-16 09:58:11.186685200 +0300
@@ -324,7 +324,7 @@
// We pause the parser to exit the tree builder, and then resume before running scripts.
scriptStartPosition = m_scriptToProcessStartPosition;
m_scriptToProcessStartPosition = uninitializedPositionValue1();
- return WTFMove(m_scriptToProcess);
+ return m_scriptToProcess;
}
void HTMLTreeBuilder::constructTree(AtomicHTMLToken& token)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/track/WebVTTElement.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/html/track/WebVTTElement.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/html/track/WebVTTElement.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/html/track/WebVTTElement.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -84,7 +84,7 @@
{
Ref<WebVTTElement> clone = create(static_cast<WebVTTNodeType>(m_webVTTNodeType), targetDocument);
clone->setLanguage(m_language);
- return WTFMove(clone);
+ return clone;
}
PassRefPtr<HTMLElement> WebVTTElement::createEquivalentHTMLElement(Document& document)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorCSSAgent.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorCSSAgent.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorCSSAgent.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorCSSAgent.cpp 2019-07-16 09:58:56.894765500 +0300
@@ -1061,7 +1061,7 @@
result->addItem(WTFMove(match));
}
- return WTFMove(result);
+ return result;
}
RefPtr<Inspector::Protocol::CSS::CSSStyle> InspectorCSSAgent::buildObjectForAttributesStyle(Element* element)
@@ -1115,7 +1115,7 @@
regions->addItem(WTFMove(region));
}
- return WTFMove(regions);
+ return regions;
}
RefPtr<Inspector::Protocol::CSS::NamedFlow> InspectorCSSAgent::buildObjectForNamedFlow(ErrorString& errorString, WebKitNamedFlow* webkitNamedFlow, int documentNodeId)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorDOMAgent.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorDOMAgent.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorDOMAgent.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorDOMAgent.cpp 2019-07-16 09:59:21.355608400 +0300
@@ -1429,7 +1429,7 @@
pseudoElements->addItem(buildObjectForNode(beforeElement, 0, nodesMap));
if (afterElement)
pseudoElements->addItem(buildObjectForNode(afterElement, 0, nodesMap));
- return WTFMove(pseudoElements);
+ return pseudoElements;
}
Ref<Inspector::Protocol::DOM::EventListener> InspectorDOMAgent::buildObjectForEventListener(const RegisteredEventListener& registeredEventListener, const AtomicString& eventType, Node* node, const String* objectGroupId)
@@ -1784,7 +1784,7 @@
value->setSelectedChildNodeIds(selectedChildNodeIds);
}
- return WTFMove(value);
+ return value;
}
Node* InspectorDOMAgent::innerFirstChild(Node* node)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorNetworkAgent.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorNetworkAgent.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorNetworkAgent.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorNetworkAgent.cpp 2019-07-16 09:59:51.510461400 +0300
@@ -234,7 +234,7 @@
responseObject->setFromDiskCache(response.source() == ResourceResponse::Source::DiskCache || response.source() == ResourceResponse::Source::DiskCacheAfterValidation);
responseObject->setTiming(buildObjectForTiming(response.resourceLoadTiming(), loader));
- return WTFMove(responseObject);
+ return responseObject;
}
static Ref<Inspector::Protocol::Network::CachedResource> buildObjectForCachedResource(CachedResource* cachedResource, DocumentLoader* loader)
@@ -512,7 +512,7 @@
.setType(Inspector::Protocol::Network::Initiator::Type::Script)
.release();
initiatorObject->setStackTrace(stackTrace->buildInspectorArray());
- return WTFMove(initiatorObject);
+ return initiatorObject;
}
if (document && document->scriptableDocumentParser()) {
@@ -521,7 +521,7 @@
.release();
initiatorObject->setUrl(document->url().string());
initiatorObject->setLineNumber(document->scriptableDocumentParser()->textPosition().m_line.oneBasedInt());
- return WTFMove(initiatorObject);
+ return initiatorObject;
}
if (m_isRecalculatingStyle && m_styleRecalculationInitiator)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorOverlay.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorOverlay.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorOverlay.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorOverlay.cpp 2019-07-16 10:00:40.291747100 +0300
@@ -586,7 +586,7 @@
}
}
- return WTFMove(arrayOfFragments);
+ return arrayOfFragments;
}
#if ENABLE(CSS_SHAPES)
@@ -689,7 +689,7 @@
}
}
- return WTFMove(shapeObject);
+ return shapeObject;
}
#endif
@@ -788,7 +788,7 @@
elementData->setRole(axObject->computedRoleString());
}
- return WTFMove(elementData);
+ return elementData;
}
RefPtr<Inspector::Protocol::OverlayTypes::NodeHighlightData> InspectorOverlay::buildHighlightObjectForNode(Node* node, HighlightType type) const
@@ -817,7 +817,7 @@
nodeHighlightObject->setElementData(WTFMove(elementData));
}
- return WTFMove(nodeHighlightObject);
+ return nodeHighlightObject;
}
Ref<Inspector::Protocol::Array<Inspector::Protocol::OverlayTypes::NodeHighlightData>> InspectorOverlay::buildObjectForHighlightedNodes() const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorReplayAgent.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorReplayAgent.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorReplayAgent.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorReplayAgent.cpp 2019-07-16 10:18:01.806984800 +0300
@@ -127,7 +127,7 @@
m_inputs->addItem(WTFMove(serializedInput));
}
- ReturnType returnValue() { return WTFMove(m_inputs); }
+ ReturnType returnValue() { return m_inputs; }
private:
RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Replay::ReplayInput>> m_inputs;
};
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorStyleSheet.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorStyleSheet.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/inspector/InspectorStyleSheet.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/inspector/InspectorStyleSheet.cpp 2019-07-16 09:45:00.223487600 +0300
@@ -199,7 +199,7 @@
continue;
listRules.append(item);
}
- return WTFMove(list);
+ return list;
}
static RefPtr<CSSRuleList> asCSSRuleList(CSSRule* rule)
@@ -309,7 +309,7 @@
if (sourceData)
result->setRange(buildSourceRangeObject(sourceData->ruleBodyRange, m_parentStyleSheet->lineEndings().get()));
- return WTFMove(result);
+ return result;
}
Ref<Inspector::Protocol::Array<Inspector::Protocol::CSS::CSSComputedStyleProperty>> InspectorStyle::buildArrayForComputedStyle() const
@@ -800,7 +800,7 @@
if (success)
result->setText(styleSheetText);
- return WTFMove(result);
+ return result;
}
RefPtr<Inspector::Protocol::CSS::CSSStyleSheetHeader> InspectorStyleSheet::buildObjectForStyleSheetInfo()
@@ -960,7 +960,7 @@
if (mediaArray->length())
result->setMedia(WTFMove(mediaArray));
- return WTFMove(result);
+ return result;
}
RefPtr<Inspector::Protocol::CSS::CSSStyle> InspectorStyleSheet::buildObjectForStyle(CSSStyleDeclaration* style)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/loader/MediaResourceLoader.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/loader/MediaResourceLoader.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/loader/MediaResourceLoader.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/loader/MediaResourceLoader.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -68,7 +68,7 @@
Ref<MediaResource> mediaResource = MediaResource::create(*this, resource);
m_resources.add(mediaResource.ptr());
- return WTFMove(mediaResource);
+ return mediaResource;
}
void MediaResourceLoader::removeResource(MediaResource& mediaResource)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp 2019-07-16 10:01:49.509068700 +0300
@@ -151,7 +151,7 @@
auto info = IDBCursorInfo::objectStoreCursor(m_transaction.get(), m_info.identifier(), range, direction);
Ref<IDBRequest> request = m_transaction->requestOpenCursor(*context, *this, info);
- return WTFMove(request);
+ return request;
}
RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage& ec)
@@ -195,7 +195,7 @@
}
Ref<IDBRequest> request = m_transaction->requestGetRecord(*context, *this, idbKey.get());
- return WTFMove(request);
+ return request;
}
RefPtr<WebCore::IDBRequest> IDBObjectStore::get(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec)
@@ -225,7 +225,7 @@
}
Ref<IDBRequest> request = m_transaction->requestGetRecord(*context, *this, keyRangeData);
- return WTFMove(request);
+ return request;
}
RefPtr<WebCore::IDBRequest> IDBObjectStore::add(JSC::ExecState& state, JSC::JSValue value, ExceptionCodeWithMessage& ec)
@@ -398,7 +398,7 @@
}
Ref<IDBRequest> request = m_transaction->requestDeleteRecord(*context, *this, keyRangeData);
- return WTFMove(request);
+ return request;
}
RefPtr<WebCore::IDBRequest> IDBObjectStore::deleteFunction(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
@@ -510,7 +510,7 @@
Locker<Lock> locker(m_referencedIndexLock);
m_referencedIndexes.set(name, WTFMove(index));
- return WTFMove(refIndex);
+ return refIndex;
}
RefPtr<WebCore::IDBIndex> IDBObjectStore::index(const String& indexName, ExceptionCodeWithMessage& ec)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/Font.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/Font.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/Font.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/Font.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -229,7 +229,7 @@
if (!haveGlyphs)
return nullptr;
- return WTFMove(glyphPage);
+ return glyphPage;
}
const GlyphPage* Font::glyphPage(unsigned pageNumber) const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/GLContext.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/GLContext.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/GLContext.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/GLContext.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -117,7 +117,7 @@
#if PLATFORM(WAYLAND) && USE(EGL)
if (PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::Wayland) {
if (auto eglContext = GLContextEGL::createContext(windowHandle, sharingContext))
- return WTFMove(eglContext);
+ return eglContext;
return nullptr;
}
#endif
@@ -129,11 +129,11 @@
XID GLXWindowHandle = static_cast<XID>(windowHandle);
#endif
if (auto glxContext = GLContextGLX::createContext(GLXWindowHandle, sharingContext))
- return WTFMove(glxContext);
+ return glxContext;
#endif
#if USE(EGL)
if (auto eglContext = GLContextEGL::createContext(windowHandle, sharingContext))
- return WTFMove(eglContext);
+ return eglContext;
#endif
return nullptr;
}
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp 2019-07-16 10:02:26.699534000 +0300
@@ -49,7 +49,7 @@
#endif
if (surface)
- return WTFMove(surface);
+ return surface;
return nullptr;
}
@@ -67,7 +67,7 @@
#endif
if (client)
- return WTFMove(client);
+ return client;
return nullptr;
}
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp 2019-07-16 10:02:49.147973400 +0300
@@ -53,7 +53,7 @@
#endif
if (surface && surface->handle() && surface->drawable())
- return WTFMove(surface);
+ return surface;
return nullptr;
}
@@ -220,7 +220,7 @@
return nullptr;
}
- return WTFMove(client);
+ return client;
}
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/network/BlobPart.h qtwebkit-5.212.0-alpha3/Source/WebCore/platform/network/BlobPart.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/network/BlobPart.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/platform/network/BlobPart.h 2019-07-16 10:03:20.535228500 +0300
@@ -65,7 +65,7 @@
Vector<uint8_t> moveData()
{
ASSERT(m_type == Data);
- return WTFMove(m_data);
+ return m_data;
}
const URL& url() const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/text/LocaleICU.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/platform/text/LocaleICU.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/text/LocaleICU.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/platform/text/LocaleICU.cpp 2019-07-16 10:03:54.090887500 +0300
@@ -185,7 +185,7 @@
return std::make_unique<Vector<String>>();
labels->append(String::adopt(buffer));
}
- return WTFMove(labels);
+ return labels;
}
#endif
@@ -196,7 +196,7 @@
labels->reserveCapacity(WTF_ARRAY_LENGTH(WTF::monthFullName));
for (unsigned i = 0; i < WTF_ARRAY_LENGTH(WTF::monthFullName); ++i)
labels->append(WTF::monthFullName[i]);
- return WTFMove(labels);
+ return labels;
}
const Vector<String>& LocaleICU::monthLabels()
@@ -220,7 +220,7 @@
labels->reserveCapacity(2);
labels->append("AM");
labels->append("PM");
- return WTFMove(labels);
+ return labels;
}
void LocaleICU::initializeDateTimeFormat()
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/URL.h qtwebkit-5.212.0-alpha3/Source/WebCore/platform/URL.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/platform/URL.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/platform/URL.h 2019-07-16 10:04:17.958929400 +0300
@@ -419,7 +419,7 @@
inline URL URLCapture::releaseURL()
{
- return WTFMove(m_URL);
+ return m_URL;
}
} // namespace WebCore
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/RenderElement.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/RenderElement.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/RenderElement.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/RenderElement.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -155,7 +155,7 @@
auto& styleImage = downcast<ImageContentData>(*contentData).image();
auto image = createRenderer<RenderImage>(element, WTFMove(style), const_cast<StyleImage*>(&styleImage));
image->setIsGeneratedContent();
- return WTFMove(image);
+ return image;
}
switch (style.get().display()) {
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/shapes/Shape.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/shapes/Shape.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/shapes/Shape.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/shapes/Shape.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -219,7 +219,7 @@
auto rasterShape = std::make_unique<RasterShape>(WTFMove(intervals), marginRect.size());
rasterShape->m_writingMode = writingMode;
rasterShape->m_margin = margin;
- return WTFMove(rasterShape);
+ return rasterShape;
}
std::unique_ptr<Shape> Shape::createBoxShape(const RoundedRect& roundedRect, WritingMode writingMode, float margin)
@@ -232,7 +232,7 @@
shape->m_writingMode = writingMode;
shape->m_margin = margin;
- return WTFMove(shape);
+ return shape;
}
} // namespace WebCore
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/style/BasicShapes.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/style/BasicShapes.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/style/BasicShapes.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/style/BasicShapes.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -201,7 +201,7 @@
result->setCenterX(m_centerX.blend(otherCircle.centerX(), progress));
result->setCenterY(m_centerY.blend(otherCircle.centerY(), progress));
result->setRadius(m_radius.blend(otherCircle.radius(), progress));
- return WTFMove(result);
+ return result;
}
bool BasicShapeEllipse::operator==(const BasicShape& other) const
@@ -260,14 +260,14 @@
result->setCenterY(otherEllipse.centerY());
result->setRadiusX(otherEllipse.radiusX());
result->setRadiusY(otherEllipse.radiusY());
- return WTFMove(result);
+ return result;
}
result->setCenterX(m_centerX.blend(otherEllipse.centerX(), progress));
result->setCenterY(m_centerY.blend(otherEllipse.centerY(), progress));
result->setRadiusX(m_radiusX.blend(otherEllipse.radiusX(), progress));
result->setRadiusY(m_radiusY.blend(otherEllipse.radiusY(), progress));
- return WTFMove(result);
+ return result;
}
bool BasicShapePolygon::operator==(const BasicShape& other) const
@@ -314,7 +314,7 @@
size_t length = m_values.size();
auto result = BasicShapePolygon::create();
if (!length)
- return WTFMove(result);
+ return result;
result->setWindRule(otherPolygon.windRule());
@@ -323,7 +323,7 @@
m_values.at(i + 1).blend(otherPolygon.values().at(i + 1), progress));
}
- return WTFMove(result);
+ return result;
}
BasicShapePath::BasicShapePath(std::unique_ptr<SVGPathByteStream>&& byteStream)
@@ -365,7 +365,7 @@
auto result = BasicShapePath::create(WTFMove(resultingPathBytes));
result->setWindRule(windRule());
- return WTFMove(result);
+ return result;
}
bool BasicShapeInset::operator==(const BasicShape& other) const
@@ -427,6 +427,6 @@
result->setBottomRightRadius(m_bottomRightRadius.blend(otherInset.bottomRightRadius(), progress));
result->setBottomLeftRadius(m_bottomLeftRadius.blend(otherInset.bottomLeftRadius(), progress));
- return WTFMove(result);
+ return result;
}
}
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/style/ContentData.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/style/ContentData.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/style/ContentData.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/style/ContentData.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -52,14 +52,14 @@
auto image = createRenderer<RenderImage>(document, RenderStyle::createStyleInheritingFromPseudoStyle(pseudoStyle), m_image.get());
image->initializeStyle();
image->setAltText(altText());
- return WTFMove(image);
+ return image;
}
RenderPtr<RenderObject> TextContentData::createContentRenderer(Document& document, const RenderStyle&) const
{
auto fragment = createRenderer<RenderTextFragment>(document, m_text);
fragment->setAltText(altText());
- return WTFMove(fragment);
+ return fragment;
}
RenderPtr<RenderObject> CounterContentData::createContentRenderer(Document& document, const RenderStyle&) const
@@ -71,7 +71,7 @@
{
auto quote = createRenderer<RenderQuote>(document, RenderStyle::createStyleInheritingFromPseudoStyle(pseudoStyle), m_quote);
quote->initializeStyle();
- return WTFMove(quote);
+ return quote;
}
} // namespace WebCore
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/svg/RenderSVGInline.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/svg/RenderSVGInline.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/svg/RenderSVGInline.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/svg/RenderSVGInline.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -40,7 +40,7 @@
{
auto box = std::make_unique<SVGInlineFlowBox>(*this);
box->setHasVirtualLogicalHeight();
- return WTFMove(box);
+ return box;
}
FloatRect RenderSVGInline::objectBoundingBox() const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -113,7 +113,7 @@
{
auto box = std::make_unique<SVGInlineTextBox>(*this);
box->setHasVirtualLogicalHeight();
- return WTFMove(box);
+ return box;
}
LayoutRect RenderSVGInlineText::localCaretRect(InlineBox* box, int caretOffset, LayoutUnit*)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/svg/RenderSVGText.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/svg/RenderSVGText.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/rendering/svg/RenderSVGText.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/rendering/svg/RenderSVGText.cpp 2019-07-16 09:45:00.254687600 +0300
@@ -426,7 +426,7 @@
{
auto box = std::make_unique<SVGRootInlineBox>(*this);
box->setHasVirtualLogicalHeight();
- return WTFMove(box);
+ return box;
}
bool RenderSVGText::nodeAtFloatPoint(const HitTestRequest& request, HitTestResult& result, const FloatPoint& pointInParent, HitTestAction hitTestAction)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedListPropertyTearOff.h qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedListPropertyTearOff.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedListPropertyTearOff.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedListPropertyTearOff.h 2019-07-16 10:05:09.673020200 +0300
@@ -47,7 +47,7 @@
auto property = ListPropertyTearOff::create(this, BaseValRole, m_values, m_wrappers);
m_baseVal = property.ptr();
- return WTFMove(property);
+ return property;
}
virtual RefPtr<ListProperty> animVal()
@@ -57,7 +57,7 @@
auto property = ListPropertyTearOff::create(this, AnimValRole, m_values, m_wrappers);
m_animVal = property.ptr();
- return WTFMove(property);
+ return property;
}
bool isAnimating() const override { return m_animatedProperty; }
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h 2019-07-16 10:05:42.526677900 +0300
@@ -38,7 +38,7 @@
auto property = SVGPathSegListPropertyTearOff::create(this, BaseValRole, PathSegUnalteredRole, m_values, m_wrappers);
m_baseVal = property.ptr();
- return WTFMove(property);
+ return property;
}
virtual RefPtr<ListProperty> animVal() override
@@ -48,7 +48,7 @@
auto property = SVGPathSegListPropertyTearOff::create(this, AnimValRole, PathSegUnalteredRole, m_values, m_wrappers);
m_animVal = property.ptr();
- return WTFMove(property);
+ return property;
}
int findItem(const RefPtr<SVGPathSeg>& segment)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h 2019-07-16 10:04:46.194979000 +0300
@@ -39,7 +39,7 @@
auto property = PropertyTearOff::create(this, BaseValRole, m_property);
m_baseVal = property.ptr();
- return WTFMove(property);
+ return property;
}
RefPtr<PropertyTearOff> animVal()
@@ -49,7 +49,7 @@
auto property = PropertyTearOff::create(this, AnimValRole, m_property);
m_animVal = property.ptr();
- return WTFMove(property);
+ return property;
}
bool isAnimating() const override { return m_animatedProperty; }
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedTransformListPropertyTearOff.h qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedTransformListPropertyTearOff.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/properties/SVGAnimatedTransformListPropertyTearOff.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/svg/properties/SVGAnimatedTransformListPropertyTearOff.h 2019-07-16 10:06:02.588313200 +0300
@@ -35,7 +35,7 @@
auto property = SVGTransformListPropertyTearOff::create(this, BaseValRole, m_values, m_wrappers);
m_baseVal = property.ptr();
- return WTFMove(property);
+ return property;
}
virtual RefPtr<ListProperty> animVal() override
@@ -45,7 +45,7 @@
auto property = SVGTransformListPropertyTearOff::create(this, AnimValRole, m_values, m_wrappers);
m_animVal = property.ptr();
- return WTFMove(property);
+ return property;
}
static Ref<SVGAnimatedTransformListPropertyTearOff> create(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animatedPropertyType, SVGTransformList& values)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/SVGToOTFFontConversion.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/svg/SVGToOTFFontConversion.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/svg/SVGToOTFFontConversion.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/svg/SVGToOTFFontConversion.cpp 2019-07-16 10:06:58.374011100 +0300
@@ -57,7 +57,7 @@
Vector<char> releaseResult()
{
- return WTFMove(m_result);
+ return m_result;
}
bool error() const
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/workers/Worker.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/workers/Worker.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/workers/Worker.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/workers/Worker.cpp 2019-07-16 10:07:18.279646100 +0300
@@ -96,7 +96,7 @@
worker->m_scriptLoader = WorkerScriptLoader::create();
auto contentSecurityPolicyEnforcement = shouldBypassMainWorldContentSecurityPolicy ? ContentSecurityPolicyEnforcement::DoNotEnforce : ContentSecurityPolicyEnforcement::EnforceChildSrcDirective;
worker->m_scriptLoader->loadAsynchronously(&context, scriptURL, DenyCrossOriginRequests, contentSecurityPolicyEnforcement, worker.ptr());
- return WTFMove(worker);
+ return worker;
}
Worker::~Worker()
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebCore/xml/DOMParser.cpp qtwebkit-5.212.0-alpha3/Source/WebCore/xml/DOMParser.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebCore/xml/DOMParser.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebCore/xml/DOMParser.cpp 2019-07-16 09:45:00.254687600 +0300
@@ -38,7 +38,7 @@
Ref<Document> doc = DOMImplementation::createDocument(contentType, nullptr, URL());
doc->setContent(str);
- return WTFMove(doc);
+ return doc;
}
} // namespace WebCore
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/Platform/IPC/ArgumentEncoder.cpp qtwebkit-5.212.0-alpha3/Source/WebKit2/Platform/IPC/ArgumentEncoder.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/Platform/IPC/ArgumentEncoder.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebKit2/Platform/IPC/ArgumentEncoder.cpp 2019-07-16 10:09:52.455717000 +0300
@@ -192,7 +192,7 @@
Vector<Attachment> ArgumentEncoder::releaseAttachments()
{
- return WTFMove(m_attachments);
+ return m_attachments;
}
} // namespace IPC
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp qtwebkit-5.212.0-alpha3/Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp 2019-07-16 10:10:45.963810900 +0300
@@ -83,7 +83,7 @@
IPC::Attachment SharedMemory::Handle::releaseAttachment() const
{
- return WTFMove(m_attachment);
+ return m_attachment;
}
void SharedMemory::Handle::adoptAttachment(IPC::Attachment&& attachment)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/Shared/linux/SeccompFilters/OpenSyscall.cpp qtwebkit-5.212.0-alpha3/Source/WebKit2/Shared/linux/SeccompFilters/OpenSyscall.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/Shared/linux/SeccompFilters/OpenSyscall.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebKit2/Shared/linux/SeccompFilters/OpenSyscall.cpp 2019-07-16 10:11:25.166679800 +0300
@@ -57,7 +57,7 @@
if (path[0] == '/') {
open->setPath(path);
- return WTFMove(open);
+ return open;
}
struct stat pathStat;
@@ -90,7 +90,7 @@
sprintf(&fdPath[size], "/%s", path);
open->setPath(fdPath);
- return WTFMove(open);
+ return open;
}
std::unique_ptr<Syscall> OpenSyscall::createFromCreatContext(mcontext_t* context)
@@ -102,7 +102,7 @@
open->setMode(context->gregs[REG_ARG1]);
open->setContext(context);
- return WTFMove(open);
+ return open;
}
OpenSyscall::OpenSyscall(mcontext_t* context)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/UIProcess/WebPageProxy.cpp qtwebkit-5.212.0-alpha3/Source/WebKit2/UIProcess/WebPageProxy.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/UIProcess/WebPageProxy.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebKit2/UIProcess/WebPageProxy.cpp 2019-07-16 10:12:44.851619800 +0300
@@ -765,7 +765,7 @@
m_process->send(Messages::WebPage::GoToBackForwardItem(navigation->navigationID(), m_backForwardList->currentItem()->itemID()), m_pageID);
m_process->responsivenessTimer().start();
- return WTFMove(navigation);
+ return navigation;
}
RefPtr<API::Navigation> WebPageProxy::reattachToWebProcessWithItem(WebBackForwardListItem* item)
@@ -787,7 +787,7 @@
m_process->send(Messages::WebPage::GoToBackForwardItem(navigation->navigationID(), item->itemID()), m_pageID);
m_process->responsivenessTimer().start();
- return WTFMove(navigation);
+ return navigation;
}
void WebPageProxy::setSessionID(SessionID sessionID)
@@ -947,7 +947,7 @@
m_process->send(Messages::WebPage::LoadRequest(navigation->navigationID(), request, sandboxExtensionHandle, (uint64_t)shouldOpenExternalURLsPolicy, UserData(process().transformObjectsToHandles(userData).get())), m_pageID);
m_process->responsivenessTimer().start();
- return WTFMove(navigation);
+ return navigation;
}
RefPtr<API::Navigation> WebPageProxy::loadFile(const String& fileURLString, const String& resourceDirectoryURLString, API::Object* userData)
@@ -985,7 +985,7 @@
m_process->send(Messages::WebPage::LoadRequest(navigation->navigationID(), fileURL, sandboxExtensionHandle, (uint64_t)ShouldOpenExternalURLsPolicy::ShouldNotAllow, UserData(process().transformObjectsToHandles(userData).get())), m_pageID);
m_process->responsivenessTimer().start();
- return WTFMove(navigation);
+ return navigation;
}
RefPtr<API::Navigation> WebPageProxy::loadData(API::Data* data, const String& MIMEType, const String& encoding, const String& baseURL, API::Object* userData)
@@ -1006,7 +1006,7 @@
m_process->send(Messages::WebPage::LoadData(navigation->navigationID(), data->dataReference(), MIMEType, encoding, baseURL, UserData(process().transformObjectsToHandles(userData).get())), m_pageID);
m_process->responsivenessTimer().start();
- return WTFMove(navigation);
+ return navigation;
}
// FIXME: Get rid of loadHTMLString and just use loadData instead.
@@ -1028,7 +1028,7 @@
m_process->send(Messages::WebPage::LoadHTMLString(navigation->navigationID(), htmlString, baseURL, UserData(process().transformObjectsToHandles(userData).get())), m_pageID);
m_process->responsivenessTimer().start();
- return WTFMove(navigation);
+ return navigation;
}
void WebPageProxy::loadAlternateHTMLString(const String& htmlString, const String& baseURL, const String& unreachableURL, API::Object* userData)
@@ -1139,7 +1139,7 @@
m_process->send(Messages::WebPage::Reload(navigation->navigationID(), reloadFromOrigin, contentBlockersEnabled, sandboxExtensionHandle), m_pageID);
m_process->responsivenessTimer().start();
- return WTFMove(navigation);
+ return navigation;
}
void WebPageProxy::recordNavigationSnapshot()
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/WebProcess/WebPage/WebPage.cpp qtwebkit-5.212.0-alpha3/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WebKit2/WebProcess/WebPage/WebPage.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WebKit2/WebProcess/WebPage/WebPage.cpp 2019-07-16 10:13:12.962869100 +0300
@@ -5169,7 +5169,7 @@
}
}
- return WTFMove(documentLoader);
+ return documentLoader;
}
void WebPage::updateCachedDocumentLoader(WebDocumentLoader& documentLoader, Frame& frame)
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WTF/wtf/StackBounds.cpp qtwebkit-5.212.0-alpha3/Source/WTF/wtf/StackBounds.cpp
--- qtwebkit-5.212.0-alpha3-orig/Source/WTF/wtf/StackBounds.cpp 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WTF/wtf/StackBounds.cpp 2019-07-16 09:45:00.239087600 +0300
@@ -119,7 +119,7 @@
void StackBounds::initialize()
{
- MEMORY_BASIC_INFORMATION stackOrigin = { 0 };
+ MEMORY_BASIC_INFORMATION stackOrigin { };
VirtualQuery(&stackOrigin, &stackOrigin, sizeof(stackOrigin));
// stackOrigin.AllocationBase points to the reserved stack memory base address.
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WTF/wtf/text/StringConcatenate.h qtwebkit-5.212.0-alpha3/Source/WTF/wtf/text/StringConcatenate.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WTF/wtf/text/StringConcatenate.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WTF/wtf/text/StringConcatenate.h 2019-07-16 10:15:10.711875900 +0300
@@ -295,7 +295,7 @@
result += adapter1.length();
adapter2.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer;
@@ -308,7 +308,7 @@
result += adapter1.length();
adapter2.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
template<typename StringType1, typename StringType2, typename StringType3>
@@ -338,7 +338,7 @@
result += adapter2.length();
adapter3.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer = 0;
@@ -353,7 +353,7 @@
result += adapter2.length();
adapter3.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
template<typename StringType1, typename StringType2, typename StringType3, typename StringType4>
@@ -387,7 +387,7 @@
result += adapter3.length();
adapter4.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer;
@@ -404,7 +404,7 @@
result += adapter3.length();
adapter4.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
template<typename StringType1, typename StringType2, typename StringType3, typename StringType4, typename StringType5>
@@ -442,7 +442,7 @@
result += adapter4.length();
adapter5.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer;
@@ -461,7 +461,7 @@
result += adapter4.length();
adapter5.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
template<typename StringType1, typename StringType2, typename StringType3, typename StringType4, typename StringType5, typename StringType6>
@@ -503,7 +503,7 @@
result += adapter5.length();
adapter6.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer;
@@ -524,7 +524,7 @@
result += adapter5.length();
adapter6.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
template<typename StringType1, typename StringType2, typename StringType3, typename StringType4, typename StringType5, typename StringType6, typename StringType7>
@@ -570,7 +570,7 @@
result += adapter6.length();
adapter7.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer;
@@ -593,7 +593,7 @@
result += adapter6.length();
adapter7.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
template<typename StringType1, typename StringType2, typename StringType3, typename StringType4, typename StringType5, typename StringType6, typename StringType7, typename StringType8>
@@ -643,7 +643,7 @@
result += adapter7.length();
adapter8.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer;
@@ -668,7 +668,7 @@
result += adapter7.length();
adapter8.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
template<typename StringType1, typename StringType2, typename StringType3, typename StringType4, typename StringType5, typename StringType6, typename StringType7, typename StringType8, typename StringType9>
@@ -722,7 +722,7 @@
result += adapter8.length();
adapter9.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
UChar* buffer;
@@ -749,7 +749,7 @@
result += adapter8.length();
adapter9.writeTo(result);
- return WTFMove(resultImpl);
+ return resultImpl;
}
diff -Naur qtwebkit-5.212.0-alpha3-orig/Source/WTF/wtf/text/WTFString.h qtwebkit-5.212.0-alpha3/Source/WTF/wtf/text/WTFString.h
--- qtwebkit-5.212.0-alpha3-orig/Source/WTF/wtf/text/WTFString.h 2019-06-26 19:25:02.000000000 +0300
+++ qtwebkit-5.212.0-alpha3/Source/WTF/wtf/text/WTFString.h 2019-07-16 10:15:35.525527800 +0300
@@ -712,7 +712,7 @@
explicit StringCapture(String&& string) : m_string(string) { }
StringCapture(const StringCapture& other) : m_string(other.m_string.isolatedCopy()) { }
const String& string() const { return m_string; }
- String releaseString() { return WTFMove(m_string); }
+ String releaseString() { return m_string; }
void operator=(const StringCapture& other) { m_string = other.m_string.isolatedCopy(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment