Changeset 977 for trunk/qmake/generators/os2/gnumake.cpp
- Timestamp:
- Aug 13, 2011, 10:49:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/os2/gnumake.cpp
r974 r977 97 97 // it at runtime. 98 98 QString ret = path; 99 if (!path.contains("$(") || (ret = escapeFileVars(path)) == path) { 99 bool matched = false; 100 if (path.contains("$(")) 101 ret = escapeFileVars(path, &matched); 102 if (!matched) { 100 103 // didn't find variable references, do plain escaping 101 104 ret.remove('\"'); … … 821 824 822 825 // static 823 QString GNUMakefileGenerator::escapeFileVars(const QString &vars )826 QString GNUMakefileGenerator::escapeFileVars(const QString &vars) 824 827 { 825 828 /* In DOS environment, we escape spaces and other illegal characters in … … 835 838 rx.setMinimal(true); 836 839 int pos = 0; 840 837 841 while ((pos = rx.indexIn(ret, pos)) != -1) { 842 838 843 QString var = rx.cap(1); 839 844 if (var.isEmpty()) … … 850 855 } 851 856 } 857 858 852 859 return ret; 853 860 }
Note:
See TracChangeset
for help on using the changeset viewer.