Commit 67ac20ab authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos and EBN issues

parent b446d7e2
......@@ -441,7 +441,7 @@ public:
if (m_warnings.isEmpty())
qCDebug(DISCOVER_LOG) << "cool no warnings!";
else
qCDebug(DISCOVER_LOG) << "test finished succesfully despite" << m_warnings;
qCDebug(DISCOVER_LOG) << "test finished successfully despite" << m_warnings;
qGuiApp->exit(m_warnings.count());
}
......
......@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef MUONDISCOVERMAINWINDOW_H
#define MUONDISCOVERMAINWINDOW_H
#ifndef DISCOVEROBJECT_H
#define DISCOVEROBJECT_H
#include <QUrl>
......@@ -97,4 +97,4 @@ class DiscoverObject : public QObject
QScopedPointer<CachedNetworkAccessManagerFactory> m_networkAccessManagerFactory;
};
#endif // MUONINSTALLERDECLARATIVEVIEW_H
#endif // DISCOVEROBJECT_H
......@@ -35,7 +35,7 @@ ConditionalLoader
else
ResourcesModel.installApplication(application);
} else {
console.warn("trying to un/install but resouce still active", application.name)
console.warn("trying to un/install but resource still active", application.name)
}
}
......
......@@ -58,7 +58,6 @@
#include <glib.h>
#include <QRegularExpression>
#include "FlatpakSourcesBackend.h"
DISCOVER_BACKEND_PLUGIN(FlatpakBackend)
......@@ -1055,7 +1054,7 @@ void FlatpakBackend::updateAppState(FlatpakInstallation *flatpakInstallation, Fl
// If the app is installed, we can set information about commit, arch etc.
updateAppInstalledMetadata(ref, resource);
} else {
// TODO check if the app is actuall still available
// TODO check if the app is actually still available
resource->setState(AbstractResource::None);
}
}
......
......@@ -57,7 +57,7 @@ void FlatpakJobTransaction::start()
{
setStatus(CommittingStatus);
// App job will be added everytime
// App job will be added every time
m_appJob = new FlatpakTransactionThread(m_app, role());
connect(m_appJob, &FlatpakTransactionThread::finished, this, &FlatpakJobTransaction::finishTransaction);
connect(m_appJob, &FlatpakTransactionThread::progressChanged, this, &FlatpakJobTransaction::onJobProgressChanged);
......
......@@ -195,7 +195,7 @@ void FwupdResource::setDeviceDetails(FwupdDevice* dev)
m_description = QString::fromUtf8((fwupd_device_get_description(dev)));
if (fwupd_device_get_icons(dev)->len >= 1)
m_iconName = QString::fromUtf8((const gchar *)g_ptr_array_index(fwupd_device_get_icons(dev), 0));// Check wether given icon exists or not!
m_iconName = QString::fromUtf8((const gchar *)g_ptr_array_index(fwupd_device_get_icons(dev), 0));// Check whether given icon exists or not!
else
m_iconName = QString::fromUtf8("device-notifier");
}
......@@ -26,8 +26,6 @@
#include "FwupdBackend.h"
#include <QStandardItemModel>
#include "FwupdBackend.h"
class FwupdSourcesModel;
class FwupdSourcesBackend : public AbstractSourcesBackend
......
......@@ -27,7 +27,6 @@
#include <QStandardItemModel>
#include <KLocalizedString>
#include <utils.h>
#include <QProcess>
QDebug operator<<(QDebug debug, const QSnapdPlug& plug)
{
......
......@@ -173,7 +173,7 @@ class DISCOVERCOMMON_EXPORT AbstractResource : public QObject
bool canUpgrade();
bool isInstalled();
///@returns a user-readable explaination of the resource status
///@returns a user-readable explanation of the resource status
///by default, it will specify what state() is returning
virtual QString status();
......
......@@ -67,7 +67,7 @@ class DISCOVERCOMMON_EXPORT ResultsStream : public QObject
* To show resources in Muon, we need to initialize all resources we want to show beforehand,
* we should not create resources in the search function. When we reload the resources
* (e.g. when initializing), the backend needs change the fetching property throughout the
* processs.
* process.
*/
class DISCOVERCOMMON_EXPORT AbstractResourcesBackend : public QObject
{
......
......@@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef ABSTRACTSOURCESMANAGER_H
#define ABSTRACTSOURCESMANAGER_H
#ifndef ABSTRACTSOURCESBACKEND_H
#define ABSTRACTSOURCESBACKEND_H
#include <QObject>
#include "discovercommon_export.h"
......
......@@ -79,7 +79,7 @@ void DiscoverNotifier::showDiscoverUpdates()
void DiscoverNotifier::showUpdatesNotification()
{
if (state()==NoUpdates) {
//it's not very helpful to notify that everyting is in order
//it's not very helpful to notify that everything is in order
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment