diff --git a/src/libcalamaresui/Branding.cpp b/src/libcalamaresui/Branding.cpp index 82bd5c5f8..348e99323 100644 --- a/src/libcalamaresui/Branding.cpp +++ b/src/libcalamaresui/Branding.cpp @@ -163,7 +163,7 @@ uploadServerFromMap( const QVariantMap& map ) bool bogus = false; // we don't care about type-name lookup success here return Branding::UploadServerInfo( names.find( typestring, bogus ), QUrl( urlstring, QUrl::ParsingMode::StrictMode ), - ( sizeLimitKiB >=0 ) ? sizeLimitKiB * 1024 : -1 ); + ( sizeLimitKiB >= 0 ) ? sizeLimitKiB * 1024 : -1 ); } /** @brief Load the @p map with strings from @p config diff --git a/src/libcalamaresui/ViewManager.cpp b/src/libcalamaresui/ViewManager.cpp index 3a8360e25..c55b5dd67 100644 --- a/src/libcalamaresui/ViewManager.cpp +++ b/src/libcalamaresui/ViewManager.cpp @@ -143,9 +143,9 @@ ViewManager::insertViewStep( int before, ViewStep* step ) void ViewManager::onInstallationFailed( const QString& message, const QString& details ) { - bool shouldOfferWebPaste - = std::get<0>(Calamares::Branding::instance()->uploadServer()) != Calamares::Branding::UploadServerType::None - and std::get<2>(Calamares::Branding::instance()->uploadServer()) != 0; + bool shouldOfferWebPaste = std::get< 0 >( Calamares::Branding::instance()->uploadServer() ) + != Calamares::Branding::UploadServerType::None + and std::get< 2 >( Calamares::Branding::instance()->uploadServer() ) != 0; cError() << "Installation failed:" << message; cDebug() << Logger::SubEntry << "- message:" << message; diff --git a/src/libcalamaresui/utils/Paste.cpp b/src/libcalamaresui/utils/Paste.cpp index 642b45004..a29d6d362 100644 --- a/src/libcalamaresui/utils/Paste.cpp +++ b/src/libcalamaresui/utils/Paste.cpp @@ -32,9 +32,9 @@ using namespace CalamaresUtils::Units; STATICTEST QByteArray logFileContents( const qint64 sizeLimitBytes ) { - if( sizeLimitBytes != -1 ) + if ( sizeLimitBytes != -1 ) { - cDebug() << "Log upload size limit was limited to" << sizeLimitBytes << "bytes"; + cDebug() << "Log upload size limit was limited to" << sizeLimitBytes << "bytes"; } const QString name = Logger::logFile(); QFile pasteSourceFile( name ); @@ -43,14 +43,14 @@ logFileContents( const qint64 sizeLimitBytes ) cWarning() << "Could not open log file" << name; return QByteArray(); } - if( sizeLimitBytes == -1 ) + if ( sizeLimitBytes == -1 ) { return pasteSourceFile.readAll(); } QFileInfo fi( pasteSourceFile ); if ( fi.size() > sizeLimitBytes ) { - cDebug() << "Only last" << sizeLimitBytes << "bytes of log file (sized" << fi.size() << "bytes) uploaded" ; + cDebug() << "Only last" << sizeLimitBytes << "bytes of log file (sized" << fi.size() << "bytes) uploaded"; fi.refresh(); pasteSourceFile.seek( fi.size() - sizeLimitBytes ); }