1. 29 Apr, 2019 1 commit
  2. 08 Feb, 2019 2 commits
  3. 06 Feb, 2019 1 commit
  4. 14 Jan, 2019 1 commit
  5. 21 Dec, 2018 1 commit
  6. 11 Dec, 2018 1 commit
  7. 07 Dec, 2018 1 commit
  8. 18 Jul, 2018 1 commit
    • 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
  9. 08 Jun, 2018 1 commit
  10. 30 May, 2018 1 commit
  11. 28 May, 2018 1 commit
  12. 29 Mar, 2018 1 commit
  13. 12 Mar, 2018 1 commit
  14. 07 Mar, 2018 1 commit
  15. 19 Feb, 2018 1 commit
  16. 12 Feb, 2018 1 commit
  17. 15 Dec, 2017 1 commit
  18. 14 Dec, 2017 2 commits
  19. 13 Dec, 2017 1 commit
  20. 08 Dec, 2017 1 commit
  21. 04 Dec, 2017 1 commit
  22. 28 Nov, 2017 1 commit
  23. 09 Nov, 2017 1 commit
  24. 02 Nov, 2017 1 commit
  25. 16 Oct, 2017 1 commit
  26. 06 Oct, 2017 1 commit
  27. 03 Oct, 2017 4 commits
  28. 03 May, 2017 1 commit
  29. 02 May, 2017 1 commit
  30. 25 Apr, 2017 1 commit
  31. 08 Mar, 2017 2 commits
  32. 23 Jan, 2017 1 commit
  33. 16 Jan, 2017 1 commit
  34. 14 Dec, 2016 1 commit