diff options
Diffstat (limited to 'framework/source/jobs/jobresult.cxx')
-rw-r--r-- | framework/source/jobs/jobresult.cxx | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/framework/source/jobs/jobresult.cxx b/framework/source/jobs/jobresult.cxx index c9f5a0218af2..2c7e4d4a08ea 100644 --- a/framework/source/jobs/jobresult.cxx +++ b/framework/source/jobs/jobresult.cxx @@ -35,7 +35,6 @@ namespace framework{ but it marks this new instance as non valid! */ JobResult::JobResult() - : m_bDeactivate(false) { // reset the flag mask! // It will reset the accessible state of this object. @@ -87,12 +86,7 @@ JobResult::JobResult() the job result */ JobResult::JobResult( /*IN*/ const css::uno::Any& aResult ) - : m_bDeactivate(false) { - // safe the pure result - // May someone need it later ... - m_aPureResult = aResult; - // reset the flag mask! // It will reset the accessible state of this object. // That can be useful if something will fail here ... @@ -106,8 +100,14 @@ JobResult::JobResult( /*IN*/ const css::uno::Any& aResult ) ::comphelper::SequenceAsHashMap::const_iterator pIt = aProtocol.find(JobConst::ANSWER_DEACTIVATE_JOB()); if (pIt != aProtocol.end()) { - pIt->second >>= m_bDeactivate; - if (m_bDeactivate) + /** + an executed job can force his deactivation + But we provide this information here only. + Doing so is part of any user of us. + */ + bool bDeactivate; + pIt->second >>= bDeactivate; + if (bDeactivate) m_eParts |= E_DEACTIVATE; } @@ -134,10 +134,8 @@ JobResult::JobResult( /*IN*/ const css::uno::Any& aResult ) */ JobResult::JobResult( const JobResult& rCopy ) { - m_aPureResult = rCopy.m_aPureResult; m_eParts = rCopy.m_eParts; m_lArguments = rCopy.m_lArguments; - m_bDeactivate = rCopy.m_bDeactivate; m_aDispatchResult = rCopy.m_aDispatchResult; } @@ -160,10 +158,8 @@ JobResult::~JobResult() JobResult& JobResult::operator=( const JobResult& rCopy ) { SolarMutexGuard g; - m_aPureResult = rCopy.m_aPureResult; m_eParts = rCopy.m_eParts; m_lArguments = rCopy.m_lArguments; - m_bDeactivate = rCopy.m_bDeactivate; m_aDispatchResult = rCopy.m_aDispatchResult; return *this; } |