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