Apply clang-format

This commit is contained in:
Martchus 2023-04-25 23:16:52 +02:00
parent b7016f98a2
commit 0caff70ebb
2 changed files with 3 additions and 2 deletions

View File

@ -88,7 +88,7 @@ EnterTargetDialog::~EnterTargetDialog()
void EnterTargetDialog::updateLevelNamePlaceholderText(int i)
{
m_ui->levelNameLineEdit->setPlaceholderText(qstringFromStdStringView(
i >= 0 ? tagTargetLevelName(containerTargetLevel(m_currentContainerFormat, static_cast<std::uint32_t>(i))) : std::string_view()));
i >= 0 ? tagTargetLevelName(containerTargetLevel(m_currentContainerFormat, static_cast<std::uint32_t>(i))) : std::string_view()));
}
void EnterTargetDialog::updateStyleSheet()

View File

@ -520,7 +520,8 @@ void PicturePreviewSelection::extractSelected()
QMessageBox::warning(this, QCoreApplication::applicationName(), tr("Unable to open output file."));
return;
}
if (value.dataSize() <= static_cast<std::size_t>(numeric_limits<qint64>::max()) && file.write(value.dataPointer(), static_cast<qint64>(value.dataSize())) > 0) {
if (value.dataSize() <= static_cast<std::size_t>(numeric_limits<qint64>::max())
&& file.write(value.dataPointer(), static_cast<qint64>(value.dataSize())) > 0) {
QMessageBox::information(this, QCoreApplication::applicationName(), tr("The cover has extracted."));
} else {
QMessageBox::warning(this, QCoreApplication::applicationName(), tr("Unable to write to output file."));