diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2016-12-26 13:43:15 +0300 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-01-02 10:39:04 +0000 |
commit | 8885343a33365d2570513073c3666428aa79dbdf (patch) | |
tree | 814cbc1b7a2be7df4abfec2b3b432f225985497a /sw/inc | |
parent | 136f5a209e1ca19f7d7b8eb69bb76e7d1b2c07e6 (diff) |
Fix inefficient usage of string::find() in condition (CWE597)
string::compare() will be faster when string::find's result is
compared with 0, because it will not scan the whole string.
Change-Id: I78596a6d796fe9779f88b7c7b91da09aa27b7035
Reviewed-on: https://gerrit.libreoffice.org/32430
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/inc')
0 files changed, 0 insertions, 0 deletions