diff options
author | I-Jui (Ray) Sung <ray@multicorewareinc.com> | 2013-10-19 00:44:53 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-29 16:59:58 -0400 |
commit | 176ab42dd0d35c5083205bc0ec79e14caa613b4f (patch) | |
tree | c9b532d81683c57398f520d3d8d5e7550c3082dc | |
parent | 12b266755d4f60d8be12b0b81c826e97aa94a1c7 (diff) |
Shrink long lines
Change-Id: I42d9f042866455a0ec82771247a95f7d57c743f7
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 1ded83833f59..69fbd917bfb9 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -696,7 +696,7 @@ class OpTbilleq:public Normal{ ss <<";\n"; ss<<"tmp001+=1.0;\n"; - ss<<"int nDiff = GetDiffDate360( GetNullDate(), tmp000, tmp001, true);\n"; + ss<<"int nDiff =GetDiffDate360(GetNullDate(),tmp000,tmp001,true);\n"; ss<<"tmp =( 365 * tmp002 ) / ( 360 - ( tmp002 * ( nDiff ) ) );\n"; ss << "return tmp;\n"; ss << "}"; @@ -718,7 +718,8 @@ public: if (i) ss << ","; vSubArguments[i]->GenSlidingWindowDecl(ss); - argVector.push_back(vSubArguments[i]->GenSlidingWindowDeclRef()); + argVector.push_back(vSubArguments[i] + ->GenSlidingWindowDeclRef()); } ss << ") {\n\t"; ss << "double tmp = " << GetBottom() <<";\n\t"; @@ -771,7 +772,8 @@ public: if (i) ss << ","; vSubArguments[i]->GenSlidingWindowDecl(ss); - argVector.push_back(vSubArguments[i]->GenSlidingWindowDeclRef()); + argVector.push_back(vSubArguments[i] + ->GenSlidingWindowDeclRef()); } ss << ") {\n\t"; ss << "double tmp = " << GetBottom() <<";\n\t"; @@ -814,7 +816,7 @@ class OpTbillprice:public Normal{ ss <<";\n"; ss<<"tmp001+=1.0;\n"; - ss<<"double fFraction = GetYearFrac( GetNullDate(), tmp000, tmp001, 0 ); // method: USA 30/360\n"; + ss<<"double fFraction =GetYearFrac(GetNullDate(),tmp000,tmp001,0);\n"; ss<<"tmp = 100.0 * ( 1.0 - tmp002 * fFraction );\n"; ss << "return tmp;\n"; ss << "}\n"; |