aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/qml/qqmlprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h
index 22e46fd7ed..c0232a7691 100644
--- a/src/qml/qml/qqmlprivate.h
+++ b/src/qml/qml/qqmlprivate.h
@@ -109,6 +109,10 @@ namespace QQmlPrivate
// the size that was allocated.
::operator delete (ptr);
}
+ static void operator delete(void *, void *) {
+ // Deliberately empty placement delete operator.
+ // Silences MSVC warning C4291: no matching operator delete found
+ }
};
template<typename T>