diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-25 08:42:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-25 13:57:29 +0200 |
commit | 1522d4b36aa4a8c6f61788b897c24ddfb065185b (patch) | |
tree | a73772f50a4620c6fdb02a65f16794ba88592cc0 /include/vcl/threadex.hxx | |
parent | a0d112a53023758a28d180ffd12766b4d325bf52 (diff) |
loplugin:unusedfields in include/vcl
and fixed bug in sepia filter, where it was using the
wrong member of the union to get the percentage
Change-Id: I56b76496a3ac711adec12dd8c08b28d69644d66f
Diffstat (limited to 'include/vcl/threadex.hxx')
-rw-r--r-- | include/vcl/threadex.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx index 8e3fa53231e6..2bb011beb84a 100644 --- a/include/vcl/threadex.hxx +++ b/include/vcl/threadex.hxx @@ -139,8 +139,7 @@ private: struct data_holder { T m_value; T * const m_ptr; - sal_Int32 m_refCount; - data_holder( T * p ) : m_value(*p), m_ptr(p), m_refCount(1) {} + data_holder( T * p ) : m_value(*p), m_ptr(p) {} ~data_holder() { *m_ptr = m_value; } }; data_holder * const m_holder; |