diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 22:38:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 22:38:57 +0200 |
commit | 0d3f9667bbc7b1a22d33dc92a2028fc712495a8e (patch) | |
tree | 0e47617932f5be3d6157f06e1bfeb6c53090cd09 /sal | |
parent | More Clang 3.4 "(anonymous namespace)" fixes (diff) | |
download | core-0d3f9667bbc7b1a22d33dc92a2028fc712495a8e.tar.gz core-0d3f9667bbc7b1a22d33dc92a2028fc712495a8e.zip |
AllocatorTraits::size can be static after all
Change-Id: If9ce8a094af878497e980cdcfaf11604d613e5b8
Diffstat (limited to 'sal')
-rw-r--r-- | sal/cpprt/operators_new_delete.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/cpprt/operators_new_delete.cxx b/sal/cpprt/operators_new_delete.cxx index 8cf69ff07196..40fdd330302e 100644 --- a/sal/cpprt/operators_new_delete.cxx +++ b/sal/cpprt/operators_new_delete.cxx @@ -40,7 +40,7 @@ struct AllocatorTraits : m_signature (s) {} - std::size_t size (std::size_t n) const + static std::size_t size (std::size_t n) { n = std::max(n, std::size_t(1)); #if OSL_DEBUG_LEVEL > 0 @@ -105,7 +105,7 @@ static void default_handler() static void* allocate ( std::size_t n, AllocatorTraits const & rTraits) { - n = rTraits.size (n); + n = AllocatorTraits::size (n); for (;;) { void * p = rtl_allocateMemory (sal_Size(n)); |