diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-09 09:21:53 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-09 08:11:34 +0000 |
commit | 538f276ae0414ea34ede6090b5f56e8fecd6fc65 (patch) | |
tree | efbfb952f3236a6f56540ddae6a896c8c73774a0 /scaddins | |
parent | f12e483589888f87843026ceff5ae3c1e615ca02 (diff) |
Formatting changes across all modules
+ Removed comment cruft
+ Tab formatting in number of files
+ Some commented out code removed
+ Tab characters replaced with spaces
+ Newline cleanup in quite a few files
+ Tweak header guard #endifs
Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc
Reviewed-on: https://gerrit.libreoffice.org/22221
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index b0af04eda3a5..5d5515863e35 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -1848,7 +1848,7 @@ void Complex::Sin() throw( uno::RuntimeException, lang::IllegalArgumentException void Complex::Cos() throw( uno::RuntimeException, lang::IllegalArgumentException ) { - if( !::rtl::math::isValidArcArg( r ) ) + if( !::rtl::math::isValidArcArg( r ) ) throw lang::IllegalArgumentException(); if( i ) @@ -2009,13 +2009,13 @@ void Complex::Sinh() throw( uno::RuntimeException, lang::IllegalArgumentExceptio if( i ) { - double r_; + double r_; r_ = sinh( r ) * cos( i ); - i = cosh( r ) * sin( i ); - r = r_; - } - else - r = sinh( r ); + i = cosh( r ) * sin( i ); + r = r_; + } + else + r = sinh( r ); } @@ -2026,13 +2026,13 @@ void Complex::Cosh() throw( uno::RuntimeException, lang::IllegalArgumentExceptio if( i ) { - double r_; + double r_; r_ = cosh( r ) * cos( i ); - i = sinh( r ) * sin( i ); - r = r_; - } - else - r = cosh( r ); + i = sinh( r ) * sin( i ); + r = r_; + } + else + r = cosh( r ); } |