Skip to content
Snippets Groups Projects
  1. Apr 23, 2020
  2. Sep 17, 2019
  3. May 16, 2019
  4. Feb 20, 2019
  5. Feb 13, 2019
  6. Feb 08, 2019
  7. Jan 14, 2019
  8. Oct 30, 2018
  9. Jul 18, 2018
    • Victor Poughon's avatar
      REFAC: remove unnecessary calls to c_str · ee124eea
      Victor Poughon authored
      This was done with this script:
      
          #!/bin/bash
      
          set -eou pipefail
      
          # Use C++11 sstream constructor from string
          # Exclude 'ThirdParty' because it uses ossimFilename type
          find Modules/ Examples/ -not -iwholename "*ThirdParty*" -type f -print0 | xargs -0 sed -i -E "s/std::ifstream (.*)\((.*)\.c_str\(\)/std::ifstream \1\(\2/"
          find Modules/ Examples/ -not -iwholename "*ThirdParty*" -type f -print0 | xargs -0 sed -i -E "s/std::ofstream (.*)\((.*)\.c_str\(\)/std::ofstream \1\(\2/"
      
          # Use C++11 ::open(const std::string&) of ifstream, ofstream, etc.
          # Exclude ThirdParty because of ossimFilename type
          find Modules/ Examples/ -not -iwholename "*ThirdParty*" -type f -print0 | xargs -0 sed -i -E "s/\.open\((.*).c_str\(\)/\.open\(\1/"
      
          # No need for c_str when outputing to std::cout and such
          find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/\.c_str\(\) ?<</ <</"
      
          # Use itk::ExceptionObject::SetDescription and SetLocation string versions
          find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/e\.SetDescription\((.*)\.c_str\(\)\)/e\.SetDescription\(\1\)/"
          find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/e\.SetLocation\((.*)\.c_str\(\)\)/e\.SetLocation\(\1\)/"
      
          # Use itksys::SystemTool:: string versions
          find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/itksys::SystemTools::(.*)\((.*)\.c_str\(\)/itksys::SystemTools::\1\(\2/"
          # Exclude otbLogger because it uses GetCurrentDateTime which does not have a string version
          git checkout --  Modules/Core/Common/src/otbLogger.cxx
          # Exclude test/otbOGRLayerStreamStitchingFilter.cxx because there's a double use which is not compatible with the regex
          git checkout -- Modules/Segmentation/OGRProcessing/test/otbOGRLayerStreamStitchingFilter.cxx
      ee124eea
  10. Jun 14, 2018
  11. Nov 01, 2017
  12. Aug 02, 2017
  13. Mar 08, 2017
  14. Sep 15, 2016
  15. Sep 22, 2015
  16. Sep 16, 2015
    • Rashad Kanavath's avatar
      ENH: Build examples if a dependent module is available. · 9b896a88
      Rashad Kanavath authored
      Earlier one needs all otb modules to build examples. This single commit
      activate an example and its related test if and only if all of its
      dependent module is activated. The check for a module is done using
      <Module>_LOADED cmake variable. With this change, activating
      BUILD_EXAMPLES=ON works flawlessly irrespective of your build configuration.
      9b896a88
  17. May 04, 2015
  18. Feb 22, 2015
  19. Feb 21, 2015
  20. Feb 19, 2015
  21. Feb 18, 2015
  22. Jan 08, 2015
  23. Dec 17, 2014
  24. Oct 28, 2014
  25. Jul 13, 2014
  26. Jan 29, 2014
  27. Nov 15, 2013
  28. Jul 04, 2013
  29. Jul 03, 2013
  30. Jul 02, 2013
  31. Jan 28, 2013
Loading