diff options
author | Timothy Pearson <[email protected]> | 2012-07-28 15:50:52 -0500 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-08-04 14:53:35 +0200 |
commit | 5ae82a06c308960c66757b0a956500b05b83f002 (patch) | |
tree | e73bef929c230d306f377880042ce09894812ccd /tools/linguist | |
parent | e9fed234b762ffe73037d70bf29ce90ea7ab8d37 (diff) | |
download | qt3-f64d86ea0beb191f98881662d46647d2bdef3400.tar.gz qt3-f64d86ea0beb191f98881662d46647d2bdef3400.zip |
Fix build warningsv3.5.13.1
Thanks to Bruce Sass for the patch!
(cherry picked from commit ebcb1d80bf517aceb69778e1e9f67e5f4da8c484)
Diffstat (limited to 'tools/linguist')
-rw-r--r-- | tools/linguist/linguist/msgedit.cpp | 2 | ||||
-rw-r--r-- | tools/linguist/lupdate/fetchtr.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/linguist/linguist/msgedit.cpp b/tools/linguist/linguist/msgedit.cpp index 09e60a1..35ec72f 100644 --- a/tools/linguist/linguist/msgedit.cpp +++ b/tools/linguist/linguist/msgedit.cpp @@ -113,7 +113,7 @@ QString richText( const QString& text ) } else if ( ch == '&' ) { rich += QString( "&" ); } else if ( ch == ' ' ) { - if ( i == 0 || i == (text.length()-1) || text[i - 1] == ' ' || text[i + 1] == ' ' ) { + if ( i == 0 || i == ((int) text.length()-1) || text[i - 1] == ' ' || text[i + 1] == ' ' ) { rich += richMeta( MessageEditor::tr("sp") ); } else { rich += ' '; diff --git a/tools/linguist/lupdate/fetchtr.cpp b/tools/linguist/lupdate/fetchtr.cpp index ce8fb98..ab6955e 100644 --- a/tools/linguist/lupdate/fetchtr.cpp +++ b/tools/linguist/lupdate/fetchtr.cpp @@ -573,9 +573,9 @@ static void parse( MetaTranslator *tor, const char *initialContext, (match(Tok_Comma) && matchString(&com) && (match(Tok_RightParen) || - match(Tok_Comma) && - matchEncoding(&utf8) && - match(Tok_RightParen))) ) + (match(Tok_Comma) && + matchEncoding(&utf8) && + match(Tok_RightParen)))) ) tor->insert( MetaTranslatorMessage(context, text, com, QString::null, utf8) ); } |