Skip to content

Commit 0fcced4

Browse files
committed
fix formatting and clang build
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 4f33dc5 commit 0fcced4

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

src/rawtoaces_idt/rta.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ vector<double> Illum::cctToxy( const double &cctd ) const
233233
if ( cctd >= 4002.15 && cctd <= 7003.77 )
234234
xy[0] =
235235
( 0.244063 + 99.11 / cctd +
236-
2.9678 * 1000000 / (std::pow( cctd, 2 ) )-4.6070 * 1000000000 /
237-
( std::pow( cctd, 3 ) ) );
236+
2.9678 * 1000000 / ( std::pow( cctd, 2 ) )
237+
-4.6070 * 1000000000 / ( std::pow( cctd, 3 ) ) );
238238
else
239239
xy[0] =
240240
( 0.237040 + 247.48 / cctd +
241-
1.9018 * 1000000 / (std::pow( cctd, 2 ) )-2.0064 * 1000000000 /
242-
( std::pow( cctd, 3 ) ) );
241+
1.9018 * 1000000 / ( std::pow( cctd, 2 ) )
242+
-2.0064 * 1000000000 / ( std::pow( cctd, 3 ) ) );
243243

244244
xy[1] = -3.0 * ( std::pow( xy[0], 2 ) ) + 2.87 * xy[0] - 0.275;
245245

unittest/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ add_executable (
77
testSpst.cpp
88
)
99

10+
set_property(TARGET Test_Spst PROPERTY CXX_STANDARD 17)
11+
1012
target_link_libraries(
1113
Test_Spst
1214
PUBLIC
@@ -21,6 +23,8 @@ add_executable (
2123
testIDT.cpp
2224
)
2325

26+
set_property(TARGET Test_IDT PROPERTY CXX_STANDARD 17)
27+
2428
target_link_libraries(
2529
Test_IDT
2630
PUBLIC
@@ -37,6 +41,8 @@ add_executable (
3741
testIllum.cpp
3842
)
3943

44+
set_property(TARGET Test_Illum PROPERTY CXX_STANDARD 17)
45+
4046
target_link_libraries(
4147
Test_Illum
4248
PUBLIC
@@ -51,6 +57,8 @@ add_executable (
5157
testDNGIdt.cpp
5258
)
5359

60+
set_property(TARGET Test_DNGIdt PROPERTY CXX_STANDARD 17)
61+
5462
target_link_libraries(
5563
Test_DNGIdt
5664
PUBLIC
@@ -65,6 +73,8 @@ add_executable (
6573
testMath.cpp
6674
)
6775

76+
set_property(TARGET Test_Math PROPERTY CXX_STANDARD 17)
77+
6878
target_link_libraries(
6979
Test_Math
7080
PUBLIC
@@ -79,6 +89,8 @@ add_executable (
7989
testLogic.cpp
8090
)
8191

92+
set_property(TARGET Test_Logic PROPERTY CXX_STANDARD 17)
93+
8294
target_link_libraries(
8395
Test_Logic
8496
PUBLIC
@@ -93,6 +105,8 @@ add_executable (
93105
testMisc.cpp
94106
)
95107

108+
set_property(TARGET Test_Misc PROPERTY CXX_STANDARD 17)
109+
96110
target_link_libraries(
97111
Test_Misc
98112
PUBLIC

0 commit comments

Comments
 (0)