Commit c7286ded authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor issues found by EBN

parent b0f3ce64
......@@ -40,7 +40,7 @@ QStringList schema()
return QStringList()
<< // Schema informations table, used for versioning
<< // Schema information table, used for versioning
QStringLiteral("CREATE TABLE IF NOT EXISTS SchemaInfo ("
"key text PRIMARY KEY, value text"
")")
......@@ -51,7 +51,7 @@ QStringList schema()
<< // The ResourceEvent table saves the Opened/Closed event pairs for
// a resource. The Accessed event is mapped to those.
// Focussing events are not stored in order not to get a
// Focusing events are not stored in order not to get a
// huge database file and to lessen writes to the disk.
QStringLiteral("CREATE TABLE IF NOT EXISTS ResourceEvent ("
"usedActivity TEXT, "
......@@ -61,7 +61,7 @@ QStringList schema()
"end INTEGER "
")")
<< // The ResourceScoreCache table stores the calcualted scores
<< // The ResourceScoreCache table stores the calculated scores
// for resources based on the recorded events.
QStringLiteral("CREATE TABLE IF NOT EXISTS ResourceScoreCache ("
"usedActivity TEXT, "
......
......@@ -309,7 +309,7 @@ void Resources::RegisterResourceMimetype(const QString &uri, const QString &mime
void Resources::RegisterResourceTitle(const QString &uri, const QString &title)
{
// A dirty saninty check for the title
// A dirty sanity check for the title
if (title.length() < 3) {
return;
}
......
......@@ -15,8 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLUGINS_GLOBAL_TEMPLATES_H
#define PLUGINS_GLOBAL_TEMPLATES_H
#ifndef PLUGINS_GLOBAL_TEMPLATES_PLUGIN_H
#define PLUGINS_GLOBAL_TEMPLATES_PLUGIN_H
#include <Plugin.h>
......@@ -45,4 +45,4 @@ private:
};
#endif // PLUGINS_GLOBAL_TEMPLATES_
#endif // PLUGINS_GLOBAL_TEMPLATES_PLUGIN_H
......@@ -123,7 +123,7 @@ bool BookmarkHandler::startElement(const QString & /*namespaceURI*/, const QStri
QString exec = attributes.value("exec");
if (exec.startsWith(QLatin1Char('\'')) && exec.endsWith(QLatin1Char('\''))) {
// remove "'" caracters wrapping the command
// remove "'" characters wrapping the command
exec = exec.mid(1, exec.size() -2);
}
......@@ -139,7 +139,7 @@ bool BookmarkHandler::startElement(const QString & /*namespaceURI*/, const QStri
app.name = service->desktopEntryName();
} else {
// when no services are found, sanitize a little the exec
// remove space and any caracter after
// remove space and any character after
const int spaceIndex = exec.indexOf(" ");
if (spaceIndex != -1) {
exec = exec.mid(0, spaceIndex);
......
......@@ -15,8 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLUGINS_EVENT_SPY_PLUGIN_H
#define PLUGINS_EVENT_SPY_PLUGIN_H
#ifndef PLUGINS_GTK_EVENT_SPY_PLUGIN_H
#define PLUGINS_GTK_EVENT_SPY_PLUGIN_H
#include <memory>
#include <Plugin.h>
......@@ -46,4 +46,4 @@ private:
QDateTime m_lastUpdate;
};
#endif // PLUGINS_EVENT_SPY_PLUGIN_H
#endif // PLUGINS_GTK_EVENT_SPY_PLUGIN_H
......@@ -105,7 +105,7 @@ void RunApplicationPlugin::activityStateChanged(const QString &activity, int sta
: (state == Stopped) ? QStringLiteral("stopped")
: QString();
if (directory == "") {
if (directory.isEmpty()) {
return;
}
......
......@@ -15,8 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLUGINS_RUN_APPLICATION_H
#define PLUGINS_RUN_APPLICATION_H
#ifndef PLUGINS_RUN_APPLICATION_PLUGIN_H
#define PLUGINS_RUN_APPLICATION_PLUGIN_H
#include <Plugin.h>
......@@ -43,4 +43,4 @@ private:
QObject *m_activitiesService;
};
#endif // PLUGINS_RUN_APPLICATION_H
#endif // PLUGINS_RUN_APPLICATION_PLUGIN_H
......@@ -87,7 +87,7 @@ namespace member_matcher {
inline bool operator()(const T &collItem, const V &value) const
{
// TODO: Make this work if the arguments are reversed,
// or even if both arhuments need to be checked
// or even if both arguments need to be checked
// for the specified member
return compare((collItem.*m_member)(), value);
}
......
......@@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UTILS_OPTIONAL_H
#define UTILS_OPTIONAL_H
#ifndef UTILS_OPTIONAL_VIEW_H
#define UTILS_OPTIONAL_VIEW_H
namespace kamd {
namespace utils {
......@@ -75,5 +75,5 @@ optional_view<T> make_optional_view(const T &value)
} // namespace kamd
#endif // UTILS_OPTIONAL_H
#endif // UTILS_OPTIONAL_VIEW_H
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