summaryrefslogtreecommitdiff
path: root/salhelper/source/simplereferenceobject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'salhelper/source/simplereferenceobject.cxx')
-rw-r--r--salhelper/source/simplereferenceobject.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/salhelper/source/simplereferenceobject.cxx b/salhelper/source/simplereferenceobject.cxx
index 0125e13198be..6df42cc1c930 100644
--- a/salhelper/source/simplereferenceobject.cxx
+++ b/salhelper/source/simplereferenceobject.cxx
@@ -74,4 +74,19 @@ void SimpleReferenceObject::operator delete(void * pPtr, std::nothrow_t const &)
#endif // WNT
}
+#ifdef _MSC_VER
+
+/* This operator is supposed to be unimplemented, but that now leads
+ * to compilation and/or linking errors with MSVC2008. (Don't know
+ * about MSVC2010.) As it can be left unimplemented just fine with
+ * gcc, presumably it is never called. So do implement it then to
+ * avoid the compilation and/or linking errors, but make it crash
+ * intentionally if called.
+ */
+void SimpleReferenceObject::operator delete[](void * /* pPtr */)
+{
+ free(NULL);
+}
+#endif
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */