diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 267c9ad2..238c2617 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -588,7 +588,7 @@ Entry* Entry::clone(CloneFlags flags) const entry->m_attachments->copyDataFrom(m_attachments); if (flags & CloneUserAsRef) { - // Build the username refrence + // Build the username reference QString username = "{REF:U@I:" + m_uuid.toHex() + "}"; entry->m_attributes->set(EntryAttributes::UserNameKey, username.toUpper(), m_attributes->isProtected(EntryAttributes::UserNameKey)); } diff --git a/src/core/Entry.h b/src/core/Entry.h index 889a9334..d97b0926 100644 --- a/src/core/Entry.h +++ b/src/core/Entry.h @@ -129,8 +129,8 @@ public: CloneResetTimeInfo = 2, // set all TimeInfo attributes to the current time CloneIncludeHistory = 4, // clone the history items CloneRenameTitle = 8, // add "-Clone" after the original title - CloneUserAsRef = 16, // Add the user as a refrence to the origional entry - ClonePassAsRef = 32, // Add the password as a refrence to the origional entry + CloneUserAsRef = 16, // Add the user as a reference to the original entry + ClonePassAsRef = 32, // Add the password as a reference to the original entry }; Q_DECLARE_FLAGS(CloneFlags, CloneFlag) diff --git a/src/http/Server.cpp b/src/http/Server.cpp index faac7be2..6a9cd94b 100644 --- a/src/http/Server.cpp +++ b/src/http/Server.cpp @@ -170,7 +170,7 @@ void Server::handleRequest(const QByteArray& data, QHttpResponse* response) // THIS IS A FAKE HACK!!! // the real "error" is a misbehavior in the QJSON qobject2qvariant method // 1. getLogins returns an empty QList into protocolResp->m_entries - // in toJson() function the following happend: + // in toJson() function the following happened: // 2. QJson::QObjectHelper::qobject2qvariant marks m_entries as invalid !!! // 3. QJson::Serializer write out Entries as null instead of empty list //(4. ChromeIPass tries to access Entries.length and fails with null pointer exception)