summaryrefslogtreecommitdiff
path: root/sccomp/source/solver/solver.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-25 21:31:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-26 18:22:20 +0100
commit5e21a413c788f839a66d9e4c14e745ed18058db8 (patch)
treed4451246461346a425ad6f796e08bf1514cdd942 /sccomp/source/solver/solver.cxx
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'sccomp/source/solver/solver.cxx')
-rw-r--r--sccomp/source/solver/solver.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/sccomp/source/solver/solver.cxx b/sccomp/source/solver/solver.cxx
index 0dae2e9926e9..9bcf6e514761 100644
--- a/sccomp/source/solver/solver.cxx
+++ b/sccomp/source/solver/solver.cxx
@@ -200,24 +200,24 @@ cppu::IPropertyArrayHelper& SAL_CALL SolverComponent::getInfoHelper()
return *getArrayHelper();
}
-uno::Reference<beans::XPropertySetInfo> SAL_CALL SolverComponent::getPropertySetInfo() throw(uno::RuntimeException)
+uno::Reference<beans::XPropertySetInfo> SAL_CALL SolverComponent::getPropertySetInfo() throw(uno::RuntimeException, std::exception)
{
return createPropertySetInfo( getInfoHelper() );
}
// XSolverDescription
-OUString SAL_CALL SolverComponent::getComponentDescription() throw (uno::RuntimeException)
+OUString SAL_CALL SolverComponent::getComponentDescription() throw (uno::RuntimeException, std::exception)
{
return lcl_GetResourceString( RID_SOLVER_COMPONENT );
}
-OUString SAL_CALL SolverComponent::getStatusDescription() throw (uno::RuntimeException)
+OUString SAL_CALL SolverComponent::getStatusDescription() throw (uno::RuntimeException, std::exception)
{
return maStatus;
}
-OUString SAL_CALL SolverComponent::getPropertyDescription( const OUString& rPropertyName ) throw (uno::RuntimeException)
+OUString SAL_CALL SolverComponent::getPropertyDescription( const OUString& rPropertyName ) throw (uno::RuntimeException, std::exception)
{
sal_uInt32 nResId = 0;
sal_Int32 nHandle = getInfoHelper().getHandleByName( rPropertyName );
@@ -251,77 +251,77 @@ OUString SAL_CALL SolverComponent::getPropertyDescription( const OUString& rProp
// XSolver: settings
-uno::Reference<sheet::XSpreadsheetDocument> SAL_CALL SolverComponent::getDocument() throw(uno::RuntimeException)
+uno::Reference<sheet::XSpreadsheetDocument> SAL_CALL SolverComponent::getDocument() throw(uno::RuntimeException, std::exception)
{
return mxDoc;
}
void SAL_CALL SolverComponent::setDocument( const uno::Reference<sheet::XSpreadsheetDocument>& _document )
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
mxDoc = _document;
}
-table::CellAddress SAL_CALL SolverComponent::getObjective() throw(uno::RuntimeException)
+table::CellAddress SAL_CALL SolverComponent::getObjective() throw(uno::RuntimeException, std::exception)
{
return maObjective;
}
-void SAL_CALL SolverComponent::setObjective( const table::CellAddress& _objective ) throw(uno::RuntimeException)
+void SAL_CALL SolverComponent::setObjective( const table::CellAddress& _objective ) throw(uno::RuntimeException, std::exception)
{
maObjective = _objective;
}
-uno::Sequence<table::CellAddress> SAL_CALL SolverComponent::getVariables() throw(uno::RuntimeException)
+uno::Sequence<table::CellAddress> SAL_CALL SolverComponent::getVariables() throw(uno::RuntimeException, std::exception)
{
return maVariables;
}
void SAL_CALL SolverComponent::setVariables( const uno::Sequence<table::CellAddress>& _variables )
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
maVariables = _variables;
}
-uno::Sequence<sheet::SolverConstraint> SAL_CALL SolverComponent::getConstraints() throw(uno::RuntimeException)
+uno::Sequence<sheet::SolverConstraint> SAL_CALL SolverComponent::getConstraints() throw(uno::RuntimeException, std::exception)
{
return maConstraints;
}
void SAL_CALL SolverComponent::setConstraints( const uno::Sequence<sheet::SolverConstraint>& _constraints )
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
maConstraints = _constraints;
}
-sal_Bool SAL_CALL SolverComponent::getMaximize() throw(uno::RuntimeException)
+sal_Bool SAL_CALL SolverComponent::getMaximize() throw(uno::RuntimeException, std::exception)
{
return mbMaximize;
}
-void SAL_CALL SolverComponent::setMaximize( sal_Bool _maximize ) throw(uno::RuntimeException)
+void SAL_CALL SolverComponent::setMaximize( sal_Bool _maximize ) throw(uno::RuntimeException, std::exception)
{
mbMaximize = _maximize;
}
// XSolver: get results
-sal_Bool SAL_CALL SolverComponent::getSuccess() throw(uno::RuntimeException)
+sal_Bool SAL_CALL SolverComponent::getSuccess() throw(uno::RuntimeException, std::exception)
{
return mbSuccess;
}
-double SAL_CALL SolverComponent::getResultValue() throw(uno::RuntimeException)
+double SAL_CALL SolverComponent::getResultValue() throw(uno::RuntimeException, std::exception)
{
return mfResultValue;
}
-uno::Sequence<double> SAL_CALL SolverComponent::getSolution() throw(uno::RuntimeException)
+uno::Sequence<double> SAL_CALL SolverComponent::getSolution() throw(uno::RuntimeException, std::exception)
{
return maSolution;
}
-void SAL_CALL SolverComponent::solve() throw(uno::RuntimeException)
+void SAL_CALL SolverComponent::solve() throw(uno::RuntimeException, std::exception)
{
uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY );
if ( !xModel.is() )
@@ -581,17 +581,17 @@ OUString SolverComponent_getImplementationName()
return OUString("com.sun.star.comp.Calc.Solver" );
}
-OUString SAL_CALL SolverComponent::getImplementationName() throw(uno::RuntimeException)
+OUString SAL_CALL SolverComponent::getImplementationName() throw(uno::RuntimeException, std::exception)
{
return SolverComponent_getImplementationName();
}
-sal_Bool SAL_CALL SolverComponent::supportsService( const OUString& rServiceName ) throw(uno::RuntimeException)
+sal_Bool SAL_CALL SolverComponent::supportsService( const OUString& rServiceName ) throw(uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, rServiceName);
}
-uno::Sequence<OUString> SAL_CALL SolverComponent::getSupportedServiceNames() throw(uno::RuntimeException)
+uno::Sequence<OUString> SAL_CALL SolverComponent::getSupportedServiceNames() throw(uno::RuntimeException, std::exception)
{
return SolverComponent_getSupportedServiceNames();
}