From 573c5bba9dbab5ca1c2c48fdaba1f7ef7122af64 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Fri, 18 Aug 2017 00:11:23 +0000 Subject: [PATCH] Simplified C++ code by removing qualifying prefix when calling static functions. --- cpp/QrSegment.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/QrSegment.cpp b/cpp/QrSegment.cpp index f180518..d119ffb 100644 --- a/cpp/QrSegment.cpp +++ b/cpp/QrSegment.cpp @@ -114,15 +114,15 @@ vector QrSegment::makeSegments(const char *text) { // Select the most efficient segment encoding automatically vector result; if (*text == '\0'); // Leave the vector empty - else if (QrSegment::isNumeric(text)) - result.push_back(QrSegment::makeNumeric(text)); - else if (QrSegment::isAlphanumeric(text)) - result.push_back(QrSegment::makeAlphanumeric(text)); + else if (isNumeric(text)) + result.push_back(makeNumeric(text)); + else if (isAlphanumeric(text)) + result.push_back(makeAlphanumeric(text)); else { vector bytes; for (; *text != '\0'; text++) bytes.push_back(static_cast(*text)); - result.push_back(QrSegment::makeBytes(bytes)); + result.push_back(makeBytes(bytes)); } return result; }