Skip to content
Snippets Groups Projects
  1. Apr 11, 2014
  2. Apr 07, 2014
  3. Mar 11, 2014
  4. Feb 12, 2014
    • Orgad Shaneh's avatar
      Clean up single namespace forward-declarations · 7ed15760
      Orgad Shaneh authored
      
      Done using the following ruby script:
      
      Dir.glob('**/*.h').each { |file|
        if File.file?(file)
          s = File.read(file)
          t = s.gsub(/^namespace .+ \{\n\s*class .*;\n\s*\}.*$/) { |m| m.gsub(/\n\s*/, ' ').gsub(/\s*\/\/.*$/, '') }
          if t != s
            puts file
            File.open(file, 'w').write(t)
          end
        end
      }
      
      Change-Id: Iffcb966e90eb8e1a625eccd5dd0b94f000ae368e
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
      7ed15760
  5. Feb 11, 2014
  6. Jan 14, 2014
  7. Jan 08, 2014
  8. Nov 01, 2013
  9. Oct 17, 2013
  10. Oct 09, 2013
  11. Sep 13, 2013
  12. Sep 05, 2013
  13. Sep 03, 2013
  14. Aug 30, 2013
  15. Jul 31, 2013
  16. Jul 09, 2013
  17. Jun 11, 2013
  18. Jun 04, 2013
  19. Jun 03, 2013
  20. May 21, 2013
  21. May 02, 2013
  22. Apr 15, 2013
    • Lorenz Haas's avatar
      Bookmarks: Fix loose bookmarks while loading file · 462bda61
      Lorenz Haas authored
      
      The problem was, that while loading saved bookmarks, updateBookmark()
      was called which automatically called saveBookmarks() even if the
      pointer of the new bookmark was not put into m_bookmarksList. Thus the
      bookmark was deleted.
      
      Task-number: QTCREATORBUG-9116
      Change-Id: I9cbdfc854e2bfa0dc448d96233ca76ee62417fe2
      Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
      462bda61
  23. Apr 11, 2013
  24. Apr 03, 2013
  25. Apr 02, 2013
  26. Mar 27, 2013
  27. Feb 06, 2013
  28. Jan 29, 2013
  29. Jan 16, 2013
  30. Jan 11, 2013
  31. Jan 08, 2013
    • 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
  32. Nov 27, 2012
  33. Oct 09, 2012
  34. Oct 05, 2012
Loading