Let qtpaths return a failure to the caller if it found nothing
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 16 May 2014 18:02:33 +0000 (11:02 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 18 May 2014 00:08:16 +0000 (02:08 +0200)
commitd3f406dfe113f0a7f7b1dcd3fada4c2b7e7cd23c
tree82d7a4cc691674ad0d10fd8b77adb86137f06ec0
parent24e4c294bd4405cc4ce73a013af833ef67bb2a26
Let qtpaths return a failure to the caller if it found nothing

Otherwise, the only hint that we get that nothing was found is an empty
line. You could detect that from a shell by assigning to a variable and
checking if it's empty (provided $IFS is set to a newline). But a return
value is much easier.

Change-Id: I00608be8a23a487c9f90a4080479c8f527a8eb3f
Reviewed-by: David Faure <david.faure@kdab.com>
src/qtpaths/qtpaths.cpp