Some simplifications, using UNO_QUERY_THROW
Change-Id: Iab702a5ad9697f1c71cc12c7dea954ca620cfdbe Reviewed-on: https://gerrit.libreoffice.org/34260 Tested-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
c27586115d
commit
9a22e96917
@ -52,9 +52,7 @@ private:
|
|||||||
|
|
||||||
void SAL_CALL CoinMPSolver::solve()
|
void SAL_CALL CoinMPSolver::solve()
|
||||||
{
|
{
|
||||||
uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY );
|
uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY_THROW );
|
||||||
if ( !xModel.is() )
|
|
||||||
throw uno::RuntimeException();
|
|
||||||
|
|
||||||
maStatus.clear();
|
maStatus.clear();
|
||||||
mbSuccess = false;
|
mbSuccess = false;
|
||||||
|
@ -83,9 +83,7 @@ private:
|
|||||||
|
|
||||||
void SAL_CALL LpsolveSolver::solve()
|
void SAL_CALL LpsolveSolver::solve()
|
||||||
{
|
{
|
||||||
uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY );
|
uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY_THROW );
|
||||||
if ( !xModel.is() )
|
|
||||||
throw uno::RuntimeException();
|
|
||||||
|
|
||||||
maStatus.clear();
|
maStatus.clear();
|
||||||
mbSuccess = false;
|
mbSuccess = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user