summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/parser.h
diff options
context:
space:
mode:
authorAhmad Samir <[email protected]>2023-05-23 16:52:27 +0300
committerQt Cherry-pick Bot <[email protected]>2023-06-20 07:43:19 +0000
commitce8dd984043b00a4238807ae31d18f54b285db8c (patch)
tree71f8e4e123251eadd4bc4f720640c9c463ac27c0 /src/tools/moc/parser.h
parent1a3305114618c9e69b19f48c82b74cc65cc39eea (diff)
Moc: port to qsizetype
Change-Id: Ibacc9b4bd6c26b890a09f689c730286c2aa0894c Reviewed-by: Fabian Kosmale <[email protected]> Reviewed-by: Thiago Macieira <[email protected]> (cherry picked from commit 2271ee6b4b5b89a5f77c4260333921bd9c3e91af) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
Diffstat (limited to 'src/tools/moc/parser.h')
-rw-r--r--src/tools/moc/parser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/moc/parser.h b/src/tools/moc/parser.h
index dc86cdec73d..2546370cb08 100644
--- a/src/tools/moc/parser.h
+++ b/src/tools/moc/parser.h
@@ -15,7 +15,7 @@ class Parser
public:
Parser():index(0), displayWarnings(true), displayNotes(true) {}
Symbols symbols;
- int index;
+ qsizetype index;
bool displayWarnings;
bool displayNotes;
@@ -62,7 +62,7 @@ inline bool Parser::test(Token token)
inline Token Parser::lookup(int k)
{
- const int l = index - 1 + k;
+ const qsizetype l = index - 1 + k;
return l < symbols.size() ? symbols.at(l).token : NOTOKEN;
}