diff options
author | Kunal Pawar <hellokunalpawar@gmail.com> | 2022-02-10 13:20:06 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-02-15 21:00:18 +0100 |
commit | 49746f40b06eaf1f61bb54454408a06a49d73c5e (patch) | |
tree | 3a94fb222ce0bb001f2340372183a1eec36247a4 /sw | |
parent | 2bf59e3b60a0d5c6ebcd4498f5038d6d2e86db62 (diff) |
tdf#145759 Use symbolic constants instead of magic numerical constants
1.4142... -> M_SQRT2
0.4142... -> M_SQRT2 - 1
3.1415... -> M_PI
2.7182... -> M_E
Change-Id: If5b19aa38d9902b1a4b717f89f18bdf2f73a47cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129745
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/bastyp/calc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx index 7ea6de6cb00c..3ba77ed08a2d 100644 --- a/sw/source/core/bastyp/calc.cxx +++ b/sw/source/core/bastyp/calc.cxx @@ -324,7 +324,7 @@ SwCalc::SwCalc( SwDoc& rD ) m_aVarTable[ aHashValue[ 0 ] ]->nValue.PutBool( false ); m_aVarTable[ aHashValue[ 1 ] ]->nValue.PutBool( true ); m_aVarTable[ aHashValue[ 2 ] ]->nValue.PutDouble( M_PI ); - m_aVarTable[ aHashValue[ 3 ] ]->nValue.PutDouble( 2.7182818284590452354 ); + m_aVarTable[ aHashValue[ 3 ] ]->nValue.PutDouble( M_E ); for( n = 0; n < 3; ++n ) m_aVarTable[ aHashValue[ n + 4 ] ]->nValue.PutLong( rDocStat.*aDocStat1[ n ] ); |