From 38bb10de4997d9b1ea2afce7ecc79107e74c47f1 Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Wed, 18 Dec 2019 18:49:58 +0200 Subject: [PATCH] Fix minor typos --- src/base32.cpp | 2 +- src/validators/countervalidator.cpp | 2 +- src/validators/util.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base32.cpp b/src/base32.cpp index 1964995..833b9b3 100644 --- a/src/base32.cpp +++ b/src/base32.cpp @@ -85,7 +85,7 @@ namespace base32 /* * sanity check that: * - decoding base32 succeeded - * - the library agrees on how big the output buffer should be, i.e. that the preceeding allocation logic was correct + * - the library agrees on how big the output buffer should be, i.e. that the preceding allocation logic was correct */ ok = status == OATH_OK && reportedCapacity == ((size_t) capacity); diff --git a/src/validators/countervalidator.cpp b/src/validators/countervalidator.cpp index f8f2d2b..1a497c6 100644 --- a/src/validators/countervalidator.cpp +++ b/src/validators/countervalidator.cpp @@ -31,7 +31,7 @@ namespace validators return std::optional(v); } else { /* - * Fall back to parsing according to C locale for beter UX. + * Fall back to parsing according to C locale for better UX. * This simplifies copy-pasting from websites which may be a bit * biased towards the Anglosphere. */ diff --git a/src/validators/util.cpp b/src/validators/util.cpp index 644727a..629e28e 100644 --- a/src/validators/util.cpp +++ b/src/validators/util.cpp @@ -20,7 +20,7 @@ #include -QRegularExpression spaces_patern(void) +QRegularExpression spaces_pattern(void) { static const QRegularExpression re("\\s*"); re.optimize(); @@ -32,7 +32,7 @@ namespace validators QString strip_spaces(QString &input) { - static const QRegularExpression re = spaces_patern(); + static const QRegularExpression re = spaces_pattern(); return input.replace(re, QLatin1String("")); } }