From d17ff80b1a000045b0d19c961a1f213380750734 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Fri, 5 May 2017 20:57:13 +0000 Subject: [PATCH] Updated some C++ implementation code to be stricter by adding appropriate 'using' directives for C standard library types. --- cpp/QrCode.cpp | 4 ++++ cpp/QrCodeGeneratorDemo.cpp | 1 + cpp/QrSegment.cpp | 2 ++ 3 files changed, 7 insertions(+) diff --git a/cpp/QrCode.cpp b/cpp/QrCode.cpp index 6d6913e..aca04b0 100644 --- a/cpp/QrCode.cpp +++ b/cpp/QrCode.cpp @@ -28,6 +28,10 @@ #include "BitBuffer.hpp" #include "QrCode.hpp" +using std::int8_t; +using std::uint8_t; +using std::size_t; + namespace qrcodegen { diff --git a/cpp/QrCodeGeneratorDemo.cpp b/cpp/QrCodeGeneratorDemo.cpp index e0719c1..d730bb4 100644 --- a/cpp/QrCodeGeneratorDemo.cpp +++ b/cpp/QrCodeGeneratorDemo.cpp @@ -31,6 +31,7 @@ #include #include "QrCode.hpp" +using std::uint8_t; using qrcodegen::QrCode; using qrcodegen::QrSegment; diff --git a/cpp/QrSegment.cpp b/cpp/QrSegment.cpp index c2a4667..61c22fd 100644 --- a/cpp/QrSegment.cpp +++ b/cpp/QrSegment.cpp @@ -26,6 +26,8 @@ #include "BitBuffer.hpp" #include "QrSegment.hpp" +using std::uint8_t; + namespace qrcodegen {