forked from qt-creator/qt-creator
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3747e941ad
commit
a44aa55502
@@ -72,7 +72,7 @@ Utils::Utils()
|
||||
QList<QVariant> Utils::locationsToRole(const QSet<SymbolLocation> &locations)
|
||||
{
|
||||
QList<QVariant> locationsVar;
|
||||
foreach(const SymbolLocation &loc, locations)
|
||||
foreach (const SymbolLocation &loc, locations)
|
||||
locationsVar.append(QVariant::fromValue(loc));
|
||||
|
||||
return locationsVar;
|
||||
@@ -81,7 +81,7 @@ QList<QVariant> Utils::locationsToRole(const QSet<SymbolLocation> &locations)
|
||||
QSet<SymbolLocation> Utils::roleToLocations(const QList<QVariant> &locationsVar)
|
||||
{
|
||||
QSet<SymbolLocation> locations;
|
||||
foreach(const QVariant &loc, locationsVar) {
|
||||
foreach (const QVariant &loc, locationsVar) {
|
||||
if (loc.canConvert<SymbolLocation>()) {
|
||||
locations.insert(loc.value<SymbolLocation>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user