summaryrefslogtreecommitdiff
path: root/include/comphelper/newarray.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/newarray.hxx')
-rw-r--r--include/comphelper/newarray.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/comphelper/newarray.hxx b/include/comphelper/newarray.hxx
index 6764cb3bfe3b..d3eaccd77ee5 100644
--- a/include/comphelper/newarray.hxx
+++ b/include/comphelper/newarray.hxx
@@ -30,7 +30,7 @@ template<typename T> T *
newArray_null(size_t const n) noexcept
{
if ((::std::numeric_limits<size_t>::max() / sizeof(T)) <= n) {
- return 0;
+ return nullptr;
}
return new (::std::nothrow) T[n];
}