summaryrefslogtreecommitdiff
path: root/include/vcl/threadex.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-14 11:45:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-08-14 13:29:39 +0200
commitc38592527adfc526133c3ac36b10aa77234313ee (patch)
tree0000e8f83527d769899e7b84d104eb93e47b82fd /include/vcl/threadex.hxx
parent86435f9e28f8e7936777cbd6e8598994e7c42428 (diff)
EXCEPTIONS_OFF is never defined
...since gb_LinkTarget_NOEXCEPTIONFLAGS became unused with e81b1f23c49e35c1cde1faa44281812e97be60f5 "remove gb_LinkTarget_add_noexception_object." Change-Id: I4a7275b5b26a9d4b6ded66efb52e6866e6e09cc3
Diffstat (limited to 'include/vcl/threadex.hxx')
-rw-r--r--include/vcl/threadex.hxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx
index 83198187ce1c..b7bd5fa6c24c 100644
--- a/include/vcl/threadex.hxx
+++ b/include/vcl/threadex.hxx
@@ -70,10 +70,8 @@ public:
typedef GenericSolarThreadExecutor<FuncT, ResultT> ExecutorT;
::std::auto_ptr<ExecutorT> const pExecutor( new ExecutorT(func) );
pExecutor->execute();
-#if ! defined(EXCEPTIONS_OFF)
if (pExecutor->m_exc.hasValue())
::cppu::throwException( pExecutor->m_exc );
-#endif
return *pExecutor->m_result;
}
@@ -83,9 +81,6 @@ private:
virtual long doIt()
{
-#if defined(EXCEPTIONS_OFF)
- m_result.reset( m_func() );
-#else
try {
m_result.reset( m_func() );
}
@@ -93,7 +88,6 @@ private:
// only UNO exceptions can be dispatched:
m_exc = ::cppu::getCaughtException();
}
-#endif
return 0;
}
@@ -113,10 +107,8 @@ public:
typedef GenericSolarThreadExecutor<FuncT, void> ExecutorT;
::std::auto_ptr<ExecutorT> const pExecutor( new ExecutorT(func) );
pExecutor->execute();
-#if ! defined(EXCEPTIONS_OFF)
if (pExecutor->m_exc.hasValue())
::cppu::throwException( pExecutor->m_exc );
-#endif
}
private:
@@ -125,9 +117,6 @@ private:
virtual long doIt()
{
-#if defined(EXCEPTIONS_OFF)
- m_func();
-#else
try {
m_func();
}
@@ -135,7 +124,6 @@ private:
// only UNO exceptions can be dispatched:
m_exc = ::cppu::getCaughtException();
}
-#endif
return 0;
}