• Orgad Shaneh's avatar
    Qnx: Remove unneeded qualifications · b1c17b39
    Orgad Shaneh authored
    Mostly done using the following ruby script:
    Dir.glob('**/*.cpp').each { |file|
      next if file =~ %r{src/shared/qbs|/qmljs/}
      s = File.read(file)
      s.scan(/^using namespace (.*);$/) {
        ns = $1
        t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
          before = $1
          char = $2
          if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
            m
          else
            before + char
          end
        }
        if t != s
          puts file
          File.open(file, 'w').write(t)
        end
      }
    }
    
    Change-Id: I78a70180927d085822e215ffb2b8ad256301e4a7
    Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
    b1c17b39
qnxruncontrolfactory.cpp 8 KB