1. 08 Dec, 2014 1 commit
  2. 23 Oct, 2014 1 commit
  3. 09 Oct, 2014 1 commit
  4. 28 Jul, 2014 1 commit
  5. 16 Jul, 2014 1 commit
  6. 04 Jun, 2014 3 commits
  7. 16 Apr, 2014 1 commit
  8. 12 Feb, 2014 1 commit
  9. 08 Jan, 2014 1 commit
  10. 26 Nov, 2013 1 commit
  11. 13 Nov, 2013 1 commit
  12. 01 Nov, 2013 1 commit
  13. 17 Oct, 2013 1 commit
  14. 19 Aug, 2013 1 commit
  15. 12 Jun, 2013 1 commit
  16. 07 Jun, 2013 1 commit
  17. 10 Apr, 2013 1 commit
  18. 22 Mar, 2013 1 commit
  19. 18 Feb, 2013 1 commit
  20. 29 Jan, 2013 1 commit
  21. 08 Jan, 2013 1 commit
    • Orgad Shaneh's avatar
      Remove braces for single lines of conditions · 29a93998
      Orgad Shaneh authored
      #!/usr/bin/env ruby
      
      Dir.glob('**/*.cpp') { |file|
        # skip ast (excluding paste, astpath, and canv'ast'imer)
        next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i
        s = File.read(file)
        next if s.include?('qlalr')
        orig = s.dup
        s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m|
          res = $&
          if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces
            res
          else
            res.gsub!('} else', 'else')
            res.gsub!(/\n +} *\n/m, "\n")
            res.gsub(/ *{$/, '')
          end
        }
        s.gsub!(/ *$/, '')
        File.open(file, 'wb').write(s) if s != orig
      }
      
      Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      29a93998
  22. 28 Nov, 2012 1 commit
  23. 09 Oct, 2012 1 commit
  24. 05 Oct, 2012 1 commit
  25. 10 Sep, 2012 1 commit
  26. 21 Aug, 2012 2 commits
  27. 19 Jul, 2012 1 commit
  28. 22 May, 2012 1 commit
  29. 04 May, 2012 1 commit
  30. 16 Apr, 2012 1 commit
  31. 29 Mar, 2012 1 commit
  32. 22 Mar, 2012 1 commit
  33. 16 Feb, 2012 1 commit
    • Denis Mingulov's avatar
      Debugger: use QString::fromLatin1 instead of QString::fromAscii · 87b1dc25
      Denis Mingulov authored
      By source - latin1 is really expected as there is no any check
      or usage of QTextCodec::setCodecForCStrings() currently.
      
      QString::fromAscii() might break 'Latin1' input in some cases.
      
      A quote from documentation about QString::fromAscii():
      
      "Note that, despite the name, this function actually uses the
      codec defined by QTextCodec::setCodecForCStrings() to convert str
      to Unicode. Depending on the codec, it may not accept valid
      US-ASCII (ANSI X3.4-1986) input. If no codec has been set, this
      function does the same as fromLatin1()."
      
      Change-Id: I49cf047ca674d2ec621b517c635d1927bb2e796f
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      87b1dc25
  34. 15 Feb, 2012 1 commit
  35. 26 Jan, 2012 1 commit
  36. 16 Jan, 2012 1 commit
  37. 21 Dec, 2011 1 commit