diff options
author | Zhang Sheng <zhangsheng@uniontech.com> | 2020-11-16 11:19:17 +0800 |
---|---|---|
committer | Zhang Sheng <zhangsheng@uniontech.com> | 2020-11-16 12:53:37 +0000 |
commit | e13173c112b729da8f53dd2e81e8116a1ed857cf (patch) | |
tree | 49c2bce0c3349eebd0f2b62c80a1b7168ae45dc2 /src/tools | |
parent | 802e5a45baf3ac7da2cb3be06d10bdd69696fcae (diff) |
Adjust code format, add space after 'if'
Change-Id: Ice081c891ff7f4b766f49dd4bd5cf18c30237acf
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/moc/moc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/moc/moc.cpp b/src/tools/moc/moc.cpp index 494adbda00..a66eda6f86 100644 --- a/src/tools/moc/moc.cpp +++ b/src/tools/moc/moc.cpp @@ -1281,7 +1281,7 @@ void Moc::parsePropertyAttributes(PropertyDef &propDef) if (l[0] == 'C' && l == "CONSTANT") { propDef.constant = true; continue; - } else if(l[0] == 'F' && l == "FINAL") { + } else if (l[0] == 'F' && l == "FINAL") { propDef.final = true; continue; } else if (l[0] == 'N' && l == "NAME") { @@ -1752,7 +1752,7 @@ bool Moc::until(Token target) { } } - if(target == COMMA && angleCount != 0 && possible != -1) { + if (target == COMMA && angleCount != 0 && possible != -1) { index = possible; return true; } @@ -1868,11 +1868,11 @@ void Moc::checkProperties(ClassDef *cdef) p.gspec = spec; break; } - if(!p.notify.isEmpty()) { + if (!p.notify.isEmpty()) { int notifyId = -1; for (int j = 0; j < cdef->signalList.count(); ++j) { const FunctionDef &f = cdef->signalList.at(j); - if(f.name != p.notify) { + if (f.name != p.notify) { continue; } else { notifyId = j /* Signal indexes start from 0 */; |