summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/alloc/rtl_alloc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa/rtl/alloc/rtl_alloc.cxx')
-rw-r--r--sal/qa/rtl/alloc/rtl_alloc.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sal/qa/rtl/alloc/rtl_alloc.cxx b/sal/qa/rtl/alloc/rtl_alloc.cxx
index f567aa32ed4d..ed0a9def1dbe 100644
--- a/sal/qa/rtl/alloc/rtl_alloc.cxx
+++ b/sal/qa/rtl/alloc/rtl_alloc.cxx
@@ -48,12 +48,11 @@ class Memory : public CppUnit::TestFixture
{
// for normal alloc functions
char *m_pMemory;
- sal_uInt32 m_nSizeOfMemory;
+ static const sal_uInt32 m_nSizeOfMemory = 1024;
public:
Memory()
: m_pMemory(nullptr)
- , m_nSizeOfMemory(1024)
{
}
@@ -96,12 +95,11 @@ class TestZeroMemory : public CppUnit::TestFixture
{
// for zero functions
char *m_pZeroMemory;
- sal_uInt32 m_nSizeOfZeroMemory;
+ static const sal_uInt32 m_nSizeOfZeroMemory = 50 * 1024 * 1024;
public:
TestZeroMemory()
: m_pZeroMemory(nullptr)
- , m_nSizeOfZeroMemory( 50 * 1024 * 1024 )
{
}