diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-15 13:57:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-17 15:06:52 +0200 |
commit | 8914595d4623390e4bac9ebbdf0d5ae9ab69aa8a (patch) | |
tree | 2fe937925e9cde3e835119c57f12807bc1f419db /include/vcl/threadex.hxx | |
parent | d69795b9c9d2dac7b751c6fe8b4663c0c26a129b (diff) |
loplugin:unusedfields in vcl part1
Change-Id: I67d176003f39992cd0ff9271a7d6ce26d2cb6619
Reviewed-on: https://gerrit.libreoffice.org/38828
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/threadex.hxx')
-rw-r--r-- | include/vcl/threadex.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx index 6330a71bcc28..954593e6604e 100644 --- a/include/vcl/threadex.hxx +++ b/include/vcl/threadex.hxx @@ -35,7 +35,6 @@ namespace vcl { osl::Condition m_aStart; osl::Condition m_aFinish; - long m_nReturn; bool m_bTimeout; DECL_DLLPRIVATE_LINK( worker, void*, void ); @@ -44,7 +43,7 @@ namespace vcl SolarThreadExecutor(); virtual ~SolarThreadExecutor(); - virtual long doIt() = 0; + virtual void doIt() = 0; void execute(); }; @@ -71,7 +70,7 @@ private: explicit GenericSolarThreadExecutor( FuncT const& func ) : m_exc(), m_func(func), m_result() {} - virtual long doIt() override + virtual void doIt() override { try { m_result.reset( m_func() ); @@ -80,7 +79,6 @@ private: // only UNO exceptions can be dispatched: m_exc = ::cppu::getCaughtException(); } - return 0; } css::uno::Any m_exc; @@ -101,7 +99,7 @@ private: explicit GenericSolarThreadExecutor( FuncT const& func ) : m_exc(), m_func(func) {} - virtual long doIt() override + virtual void doIt() override { try { m_func(); @@ -110,7 +108,6 @@ private: // only UNO exceptions can be dispatched: m_exc = ::cppu::getCaughtException(); } - return 0; } css::uno::Any m_exc; |