summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step2/tutorial.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-24 13:33:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-02-24 13:34:24 (GMT)
commit1d939b43b2833c845db3588cef80a7e55edc6a53 (patch)
tree8e47f96f71c364ff1a7b50adc2b9030b6e55eaa9 /Help/guide/tutorial/Step2/tutorial.cxx
parent7552276e6ecfa918fd54978d939ab7532920346e (diff)
parent8ddf32196c6bca9c3a80414222327eebd5d51835 (diff)
downloadCMake-1d939b43b2833c845db3588cef80a7e55edc6a53.zip
CMake-1d939b43b2833c845db3588cef80a7e55edc6a53.tar.gz
CMake-1d939b43b2833c845db3588cef80a7e55edc6a53.tar.bz2
Merge topic 'tutorial_dependency_inversion'
8ddf32196c Tutorial: Refactor MathFunctions code Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7789
Diffstat (limited to 'Help/guide/tutorial/Step2/tutorial.cxx')
-rw-r--r--Help/guide/tutorial/Step2/tutorial.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/Help/guide/tutorial/Step2/tutorial.cxx b/Help/guide/tutorial/Step2/tutorial.cxx
index 87f5e0f..7a2a595 100644
--- a/Help/guide/tutorial/Step2/tutorial.cxx
+++ b/Help/guide/tutorial/Step2/tutorial.cxx
@@ -3,11 +3,8 @@
#include <iostream>
#include <string>
-#include "TutorialConfig.h"
-
-// TODO 11: Only include MathFunctions if USE_MYMATH is defined
-
// TODO 5: Include MathFunctions.h
+#include "TutorialConfig.h"
int main(int argc, char* argv[])
{
@@ -22,9 +19,7 @@ int main(int argc, char* argv[])
// convert input to double
const double inputValue = std::stod(argv[1]);
- // TODO 12: Use mysqrt if USE_MYMATH is defined and sqrt otherwise
-
- // TODO 6: Replace sqrt with mysqrt
+ // TODO 6: Replace sqrt with mathfunctions::sqrt
// calculate square root
const double outputValue = sqrt(inputValue);