summaryrefslogtreecommitdiff
path: root/sccomp
diff options
context:
space:
mode:
Diffstat (limited to 'sccomp')
-rw-r--r--sccomp/source/solver/CoinMPSolver.cxx4
-rw-r--r--sccomp/source/solver/LpsolveSolver.cxx4
2 files changed, 2 insertions, 6 deletions
diff --git a/sccomp/source/solver/CoinMPSolver.cxx b/sccomp/source/solver/CoinMPSolver.cxx
index d7f1751972c3..36cead8f116b 100644
--- a/sccomp/source/solver/CoinMPSolver.cxx
+++ b/sccomp/source/solver/CoinMPSolver.cxx
@@ -52,9 +52,7 @@ private:
void SAL_CALL CoinMPSolver::solve()
{
- uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY );
- if ( !xModel.is() )
- throw uno::RuntimeException();
+ uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY_THROW );
maStatus.clear();
mbSuccess = false;
diff --git a/sccomp/source/solver/LpsolveSolver.cxx b/sccomp/source/solver/LpsolveSolver.cxx
index 114a259dc304..a81883d57fca 100644
--- a/sccomp/source/solver/LpsolveSolver.cxx
+++ b/sccomp/source/solver/LpsolveSolver.cxx
@@ -83,9 +83,7 @@ private:
void SAL_CALL LpsolveSolver::solve()
{
- uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY );
- if ( !xModel.is() )
- throw uno::RuntimeException();
+ uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY_THROW );
maStatus.clear();
mbSuccess = false;