[libcalamares] Apply coding style
- .. or, rather, avoid re-formatting tables in future.
This commit is contained in:
parent
09a36cd669
commit
ccd707b23a
@ -29,13 +29,22 @@ namespace Partition
|
|||||||
static const NamedEnumTable< SizeUnit >&
|
static const NamedEnumTable< SizeUnit >&
|
||||||
unitSuffixes()
|
unitSuffixes()
|
||||||
{
|
{
|
||||||
|
// *INDENT-OFF*
|
||||||
|
// clang-format off
|
||||||
static const NamedEnumTable< SizeUnit > names {
|
static const NamedEnumTable< SizeUnit > names {
|
||||||
{ QStringLiteral( "%" ), SizeUnit::Percent }, { QStringLiteral( "K" ), SizeUnit::KiB },
|
{ QStringLiteral( "%" ), SizeUnit::Percent },
|
||||||
{ QStringLiteral( "KiB" ), SizeUnit::KiB }, { QStringLiteral( "M" ), SizeUnit::MiB },
|
{ QStringLiteral( "K" ), SizeUnit::KiB },
|
||||||
{ QStringLiteral( "MiB" ), SizeUnit::MiB }, { QStringLiteral( "G" ), SizeUnit::GiB },
|
{ QStringLiteral( "KiB" ), SizeUnit::KiB },
|
||||||
{ QStringLiteral( "GiB" ), SizeUnit::GiB }, { QStringLiteral( "KB" ), SizeUnit::KB },
|
{ QStringLiteral( "M" ), SizeUnit::MiB },
|
||||||
{ QStringLiteral( "MB" ), SizeUnit::MB }, { QStringLiteral( "GB" ), SizeUnit::GB }
|
{ QStringLiteral( "MiB" ), SizeUnit::MiB },
|
||||||
|
{ QStringLiteral( "G" ), SizeUnit::GiB },
|
||||||
|
{ QStringLiteral( "GiB" ), SizeUnit::GiB },
|
||||||
|
{ QStringLiteral( "KB" ), SizeUnit::KB },
|
||||||
|
{ QStringLiteral( "MB" ), SizeUnit::MB },
|
||||||
|
{ QStringLiteral( "GB" ), SizeUnit::GB }
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
// *INDENT-ON*
|
||||||
|
|
||||||
return names;
|
return names;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user