added brace wrapping after if and for

This commit is contained in:
fourtf
2018-10-21 13:43:02 +02:00
parent c6e1ec3c71
commit e259b9e39f
138 changed files with 4738 additions and 2237 deletions
+8 -4
View File
@@ -19,7 +19,8 @@ static QString CreateUUID()
static QString createLink(const QString &url, bool file = false)
{
if (file) {
if (file)
{
return QString("<a href=\"file:///" + url +
"\"><span style=\"color: white;\">" + url +
"</span></a>");
@@ -29,9 +30,11 @@ static QString createLink(const QString &url, bool file = false)
url + "</span></a>");
}
static QString createNamedLink(const QString &url, const QString &name, bool file = false)
static QString createNamedLink(const QString &url, const QString &name,
bool file = false)
{
if (file) {
if (file)
{
return QString("<a href=\"file:///" + url +
"\"><span style=\"color: white;\">" + name +
"</span></a>");
@@ -43,7 +46,8 @@ static QString createNamedLink(const QString &url, const QString &name, bool fil
static QString shortenString(const QString &str, unsigned maxWidth = 50)
{
if (str.size() <= maxWidth) {
if (str.size() <= maxWidth)
{
return str;
}