summaryrefslogtreecommitdiffstats
path: root/qmake/generators/makefile.cpp
diff options
context:
space:
mode:
authorSune Vuorela <sune@vuorela.dk>2018-12-16 13:52:45 +0100
committerSune Vuorela <sune@vuorela.dk>2018-12-19 19:25:29 +0000
commit23207d1d2386d97b9d27f2af385d70f80c14ab95 (patch)
treeabace6dd0df3b3b8028432f1c3a22c915153b870 /qmake/generators/makefile.cpp
parent52934d74be7d882f3f584a348ce29bedff7fa7a7 (diff)
Empty filenames does not exist
If empty paths is passed to the unix filesystem engine, we get a warning about empty filename passed to function, before returning false. Fix this by testing for empty string first, and don't send empty string to file engine. The current warning leads to code like if (!filename.isEmpty() && QFile::exists(filename)) { // } rather than the slightly cleaner if (QFile::exists(filename)) { // } Change-Id: I0207324889ec22e5a072c28d58337d117b0153b1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'qmake/generators/makefile.cpp')
0 files changed, 0 insertions, 0 deletions