diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-05-11 10:26:50 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-06-25 10:19:09 +0200 |
commit | a418fd5cbbf2d121c93d27194c02eb36aa4ac97e (patch) | |
tree | 2839c20b8ddcc420528181b55e4a856315a83418 /src/corelib/text/qstringiterator_p.h | |
parent | e721ec269e972ea2754cb9bd27fb73b72ed53c7b (diff) |
Improve casting
Make a handful of narrowing casts explicit
Change-Id: I318e9778840f2437963377b6b97f269d569909dc
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/corelib/text/qstringiterator_p.h')
-rw-r--r-- | src/corelib/text/qstringiterator_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstringiterator_p.h b/src/corelib/text/qstringiterator_p.h index 6f9e82389e..0ee5eb0e53 100644 --- a/src/corelib/text/qstringiterator_p.h +++ b/src/corelib/text/qstringiterator_p.h @@ -90,7 +90,7 @@ public: inline int index() const { - return pos - i; + return int(pos - i); } inline void setPosition(QString::const_iterator position) |