aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/msvc.js
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2013-06-13 14:19:51 -0400
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-06-18 10:54:59 +0200
commit1d5c5e16a582401f5d1af299f95b57936db84593 (patch)
tree852dac83ef017cbc2196b89e4a4a0f6b2a76f223 /share/qbs/modules/cpp/msvc.js
parentf20c3e06bf517a6e23d20afddd0ba36bfd611244 (diff)
Make use of contains() where appropriate.
Change-Id: I93279572f422ea3b14d7c8467caae746f71e1fac Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share/qbs/modules/cpp/msvc.js')
-rw-r--r--share/qbs/modules/cpp/msvc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js
index 29d49fa2a..8d9f187b2 100644
--- a/share/qbs/modules/cpp/msvc.js
+++ b/share/qbs/modules/cpp/msvc.js
@@ -7,7 +7,7 @@ function prepareCompiler(product, input, outputs, platformDefines, defines, incl
// C or C++
var isCxx = true;
- if (input.fileTags.indexOf('c') >= 0) {
+ if (input.fileTags.contains('c')) {
isCxx = false;
args.push('/TC')
}