diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-25 21:31:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-26 18:22:20 +0100 |
commit | 5e21a413c788f839a66d9e4c14e745ed18058db8 (patch) | |
tree | d4451246461346a425ad6f796e08bf1514cdd942 /scaddins/source/pricing | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'scaddins/source/pricing')
-rw-r--r-- | scaddins/source/pricing/pricing.cxx | 36 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.hxx | 36 |
2 files changed, 36 insertions, 36 deletions
diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx index b079942e7213..e3db898e4511 100644 --- a/scaddins/source/pricing/pricing.cxx +++ b/scaddins/source/pricing/pricing.cxx @@ -314,50 +314,50 @@ uno::Sequence< OUString > ScaPricingAddIn::getSupportedServiceNames_Static() } // XServiceName -OUString SAL_CALL ScaPricingAddIn::getServiceName() throw( uno::RuntimeException ) +OUString SAL_CALL ScaPricingAddIn::getServiceName() throw( uno::RuntimeException, std::exception ) { // name of specific AddIn service return OUString( MY_SERVICE ); } // XServiceInfo -OUString SAL_CALL ScaPricingAddIn::getImplementationName() throw( uno::RuntimeException ) +OUString SAL_CALL ScaPricingAddIn::getImplementationName() throw( uno::RuntimeException, std::exception ) { return getImplementationName_Static(); } -sal_Bool SAL_CALL ScaPricingAddIn::supportsService( const OUString& aServiceName ) throw( uno::RuntimeException ) +sal_Bool SAL_CALL ScaPricingAddIn::supportsService( const OUString& aServiceName ) throw( uno::RuntimeException, std::exception ) { return cppu::supportsService(this, aServiceName); } -uno::Sequence< OUString > SAL_CALL ScaPricingAddIn::getSupportedServiceNames() throw( uno::RuntimeException ) +uno::Sequence< OUString > SAL_CALL ScaPricingAddIn::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) { return getSupportedServiceNames_Static(); } // XLocalizable -void SAL_CALL ScaPricingAddIn::setLocale( const lang::Locale& eLocale ) throw( uno::RuntimeException ) +void SAL_CALL ScaPricingAddIn::setLocale( const lang::Locale& eLocale ) throw( uno::RuntimeException, std::exception ) { aFuncLoc = eLocale; InitData(); // change of locale invalidates resources! } -lang::Locale SAL_CALL ScaPricingAddIn::getLocale() throw( uno::RuntimeException ) +lang::Locale SAL_CALL ScaPricingAddIn::getLocale() throw( uno::RuntimeException, std::exception ) { return aFuncLoc; } // function descriptions start here // XAddIn -OUString SAL_CALL ScaPricingAddIn::getProgrammaticFuntionName( const OUString& ) throw( uno::RuntimeException ) +OUString SAL_CALL ScaPricingAddIn::getProgrammaticFuntionName( const OUString& ) throw( uno::RuntimeException, std::exception ) { // not used by calc // (but should be implemented for other uses of the AddIn service) return OUString(); } -OUString SAL_CALL ScaPricingAddIn::getDisplayFunctionName( const OUString& aProgrammaticName ) throw( uno::RuntimeException ) +OUString SAL_CALL ScaPricingAddIn::getDisplayFunctionName( const OUString& aProgrammaticName ) throw( uno::RuntimeException, std::exception ) { OUString aRet; @@ -377,7 +377,7 @@ OUString SAL_CALL ScaPricingAddIn::getDisplayFunctionName( const OUString& aProg return aRet; } -OUString SAL_CALL ScaPricingAddIn::getFunctionDescription( const OUString& aProgrammaticName ) throw( uno::RuntimeException ) +OUString SAL_CALL ScaPricingAddIn::getFunctionDescription( const OUString& aProgrammaticName ) throw( uno::RuntimeException, std::exception ) { OUString aRet; @@ -389,7 +389,7 @@ OUString SAL_CALL ScaPricingAddIn::getFunctionDescription( const OUString& aProg } OUString SAL_CALL ScaPricingAddIn::getDisplayArgumentName( - const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( uno::RuntimeException ) + const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( uno::RuntimeException, std::exception ) { OUString aRet; @@ -407,7 +407,7 @@ OUString SAL_CALL ScaPricingAddIn::getDisplayArgumentName( } OUString SAL_CALL ScaPricingAddIn::getArgumentDescription( - const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( uno::RuntimeException ) + const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( uno::RuntimeException, std::exception ) { OUString aRet; @@ -425,7 +425,7 @@ OUString SAL_CALL ScaPricingAddIn::getArgumentDescription( } OUString SAL_CALL ScaPricingAddIn::getProgrammaticCategoryName( - const OUString& aProgrammaticName ) throw( uno::RuntimeException ) + const OUString& aProgrammaticName ) throw( uno::RuntimeException, std::exception ) { OUString aRet; @@ -451,14 +451,14 @@ OUString SAL_CALL ScaPricingAddIn::getProgrammaticCategoryName( } OUString SAL_CALL ScaPricingAddIn::getDisplayCategoryName( - const OUString& aProgrammaticName ) throw( uno::RuntimeException ) + const OUString& aProgrammaticName ) throw( uno::RuntimeException, std::exception ) { return getProgrammaticCategoryName( aProgrammaticName ); } // XCompatibilityNames uno::Sequence< sheet::LocalizedName > SAL_CALL ScaPricingAddIn::getCompatibilityNames( - const OUString& aProgrammaticName ) throw( uno::RuntimeException ) + const OUString& aProgrammaticName ) throw( uno::RuntimeException, std::exception ) { const ScaFuncData* pFData = pFuncDataList->Get( aProgrammaticName ); if( !pFData ) @@ -589,7 +589,7 @@ double SAL_CALL ScaPricingAddIn::getOptBarrier( double spot, double vol, double r, double rf, double T, double strike, double barrier_low, double barrier_up, double rebate, const OUString& put_call, const OUString& in_out, - const OUString& barriercont, const uno::Any& greekstr ) throw( uno::RuntimeException, lang::IllegalArgumentException ) + const OUString& barriercont, const uno::Any& greekstr ) throw( uno::RuntimeException, lang::IllegalArgumentException, std::exception ) { bs::types::PutCall pc; bs::types::BarrierKIO kio; @@ -615,7 +615,7 @@ double SAL_CALL ScaPricingAddIn::getOptTouch( double spot, double vol, double r, double rf, double T, double barrier_low, double barrier_up, const OUString& for_dom, const OUString& in_out, - const OUString& barriercont, const uno::Any& greekstr ) throw( uno::RuntimeException, lang::IllegalArgumentException ) + const OUString& barriercont, const uno::Any& greekstr ) throw( uno::RuntimeException, lang::IllegalArgumentException, std::exception ) { bs::types::ForDom fd; bs::types::BarrierKIO kio; @@ -639,7 +639,7 @@ double SAL_CALL ScaPricingAddIn::getOptTouch( double spot, double vol, // OPT_PRB_HIT(...) double SAL_CALL ScaPricingAddIn::getOptProbHit( double spot, double vol, double mu, double T, - double barrier_low, double barrier_up ) throw( uno::RuntimeException, lang::IllegalArgumentException ) + double barrier_low, double barrier_up ) throw( uno::RuntimeException, lang::IllegalArgumentException, std::exception ) { // read and check input values if( spot<=0.0 || vol<=0.0 || T<0.0 ) { @@ -655,7 +655,7 @@ double SAL_CALL ScaPricingAddIn::getOptProbHit( double spot, double vol, double SAL_CALL ScaPricingAddIn::getOptProbInMoney( double spot, double vol, double mu, double T, double barrier_low, double barrier_up, - const uno::Any& strikeval, const uno::Any& put_call ) throw( uno::RuntimeException, lang::IllegalArgumentException ) + const uno::Any& strikeval, const uno::Any& put_call ) throw( uno::RuntimeException, lang::IllegalArgumentException, std::exception ) { bs::types::PutCall pc=bs::types::Call; double K; diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index 5f9a066f172f..b71d17854e58 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -358,28 +358,28 @@ public: static css::uno::Sequence< OUString > getSupportedServiceNames_Static(); // XAddIn - virtual OUString SAL_CALL getProgrammaticFuntionName( const OUString& aDisplayName ) throw( css::uno::RuntimeException ); - virtual OUString SAL_CALL getDisplayFunctionName( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException ); - virtual OUString SAL_CALL getFunctionDescription( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException ); - virtual OUString SAL_CALL getDisplayArgumentName( const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( css::uno::RuntimeException ); - virtual OUString SAL_CALL getArgumentDescription( const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( css::uno::RuntimeException ); - virtual OUString SAL_CALL getProgrammaticCategoryName( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException ); - virtual OUString SAL_CALL getDisplayCategoryName( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException ); + virtual OUString SAL_CALL getProgrammaticFuntionName( const OUString& aDisplayName ) throw( css::uno::RuntimeException, std::exception ); + virtual OUString SAL_CALL getDisplayFunctionName( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException, std::exception ); + virtual OUString SAL_CALL getFunctionDescription( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException, std::exception ); + virtual OUString SAL_CALL getDisplayArgumentName( const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( css::uno::RuntimeException, std::exception ); + virtual OUString SAL_CALL getArgumentDescription( const OUString& aProgrammaticName, sal_Int32 nArgument ) throw( css::uno::RuntimeException, std::exception ); + virtual OUString SAL_CALL getProgrammaticCategoryName( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException, std::exception ); + virtual OUString SAL_CALL getDisplayCategoryName( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException, std::exception ); // XCompatibilityNames - virtual css::uno::Sequence< css::sheet::LocalizedName > SAL_CALL getCompatibilityNames( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException ); + virtual css::uno::Sequence< css::sheet::LocalizedName > SAL_CALL getCompatibilityNames( const OUString& aProgrammaticName ) throw( css::uno::RuntimeException, std::exception ); // XLocalizable - virtual void SAL_CALL setLocale( const css::lang::Locale& eLocale ) throw( css::uno::RuntimeException ); - virtual css::lang::Locale SAL_CALL getLocale() throw( css::uno::RuntimeException ); + virtual void SAL_CALL setLocale( const css::lang::Locale& eLocale ) throw( css::uno::RuntimeException, std::exception ); + virtual css::lang::Locale SAL_CALL getLocale() throw( css::uno::RuntimeException, std::exception ); // XServiceName - virtual OUString SAL_CALL getServiceName() throw( css::uno::RuntimeException ); + virtual OUString SAL_CALL getServiceName() throw( css::uno::RuntimeException, std::exception ); // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException ); - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ); - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException ); + virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ); + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException, std::exception ); + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ); // methods from own interfaces start here @@ -389,22 +389,22 @@ public: double r, double rf, double T, double strike, double barrier_low, double barrier_up, double rebate, const OUString& put_call, const OUString& in_out, - const OUString& continuous, const css::uno::Any& greek ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); + const OUString& continuous, const css::uno::Any& greek ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ); virtual double SAL_CALL getOptTouch( double spot, double vol, double r, double rf, double T, double barrier_low, double barrier_up, const OUString& for_dom, const OUString& in_out, - const OUString& barriercont, const css::uno::Any& greekstr ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); + const OUString& barriercont, const css::uno::Any& greekstr ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ); virtual double SAL_CALL getOptProbHit( double spot, double vol, double mu, double T, - double barrier_low, double barrier_up ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); + double barrier_low, double barrier_up ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ); virtual double SAL_CALL getOptProbInMoney( double spot, double vol, double mu, double T, double barrier_low, double barrier_up, - const css::uno::Any& strikeval, const css::uno::Any& put_call ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); + const css::uno::Any& strikeval, const css::uno::Any& put_call ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ); }; |