mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-23 16:31:28 -05:00
Performed project-wide code formatting
* Updated format CMake command to properly ignore new directories and files * Added output when command is run * Resolves #2623
This commit is contained in:
parent
c74664097b
commit
7e1b16250c
68 changed files with 591 additions and 542 deletions
|
|
@ -208,7 +208,8 @@ namespace Tools
|
|||
return regex;
|
||||
}
|
||||
|
||||
QString uuidToHex(const QUuid& uuid) {
|
||||
QString uuidToHex(const QUuid& uuid)
|
||||
{
|
||||
return QString::fromLatin1(uuid.toRfc4122().toHex());
|
||||
}
|
||||
|
||||
|
|
@ -216,7 +217,6 @@ namespace Tools
|
|||
: raw(nullptr)
|
||||
, size(0)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Buffer::~Buffer()
|
||||
|
|
@ -226,15 +226,16 @@ namespace Tools
|
|||
|
||||
void Buffer::clear()
|
||||
{
|
||||
if(size > 0){
|
||||
if (size > 0) {
|
||||
free(raw);
|
||||
}
|
||||
raw = nullptr; size = 0;
|
||||
raw = nullptr;
|
||||
size = 0;
|
||||
}
|
||||
|
||||
QByteArray Buffer::content() const
|
||||
{
|
||||
return QByteArray(reinterpret_cast<char*>(raw), size );
|
||||
return QByteArray(reinterpret_cast<char*>(raw), size);
|
||||
}
|
||||
|
||||
} // namespace Tools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue