1. 17 Jan, 2013 4 commits
  2. 16 Jan, 2013 1 commit
  3. 15 Jan, 2013 2 commits
  4. 12 Jan, 2013 2 commits
  5. 11 Jan, 2013 5 commits
  6. 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
  7. 04 Jan, 2013 1 commit
    • Erik Verbruggen's avatar
      Fix compilation on Mac. · 38c94063
      Erik Verbruggen authored
      
      
      The methods Utils::UnixUtils::fileBrowser and
      Utils::UnixUtils::substituteFileBrowserParameters are both declared when
      compiling on MacOS, but their implementation is not compiled into
      libutils. So this gives linker errors.
      
      Change-Id: I0befb607dda0a83d681068f8236167ba88918460
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      38c94063
  8. 02 Jan, 2013 2 commits
  9. 29 Dec, 2012 6 commits
  10. 28 Dec, 2012 2 commits
  11. 18 Dec, 2012 1 commit
  12. 11 Dec, 2012 2 commits
  13. 05 Dec, 2012 2 commits
  14. 03 Dec, 2012 1 commit
  15. 30 Nov, 2012 1 commit
  16. 29 Nov, 2012 3 commits
  17. 28 Nov, 2012 4 commits