Base: apply clang format

This commit is contained in:
wmayer
2023-11-10 18:27:44 +01:00
committed by WandererFan
parent 41528339e4
commit e85c383bff
154 changed files with 11874 additions and 9872 deletions

View File

@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QUuid>
#include <QUuid>
#endif
#include <stdexcept>
@@ -71,8 +71,9 @@ void Uuid::setValue(const char* sString)
{
if (sString) {
QUuid uuid(QString::fromLatin1(sString));
if (uuid.isNull())
if (uuid.isNull()) {
throw std::runtime_error("invalid uuid");
}
// remove curly braces
QString id = uuid.toString();
id = id.mid(1);
@@ -81,7 +82,7 @@ void Uuid::setValue(const char* sString)
}
}
void Uuid::setValue(const std::string &sString)
void Uuid::setValue(const std::string& sString)
{
setValue(sString.c_str());
}