From 09d6d3c545426662f896083191a0619faf54eb92 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Fri, 18 Aug 2017 16:18:55 -0400 Subject: [PATCH] misc. typo fixes non-user-facing trivial source comment fixes --- src/core/Entry.cpp | 2 +- src/core/Entry.h | 4 ++-- src/http/Server.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 267c9ad2b..238c26176 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 889a9334e..d97b09269 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 faac7be23..6a9cd94b1 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)