Updated some C++ implementation code to be stricter by adding appropriate 'using' directives for C standard library types.

This commit is contained in:
Project Nayuki 2017-05-05 20:57:13 +00:00
parent 58046f902f
commit d17ff80b1a
3 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,10 @@
#include "BitBuffer.hpp" #include "BitBuffer.hpp"
#include "QrCode.hpp" #include "QrCode.hpp"
using std::int8_t;
using std::uint8_t;
using std::size_t;
namespace qrcodegen { namespace qrcodegen {

View File

@ -31,6 +31,7 @@
#include <vector> #include <vector>
#include "QrCode.hpp" #include "QrCode.hpp"
using std::uint8_t;
using qrcodegen::QrCode; using qrcodegen::QrCode;
using qrcodegen::QrSegment; using qrcodegen::QrSegment;

View File

@ -26,6 +26,8 @@
#include "BitBuffer.hpp" #include "BitBuffer.hpp"
#include "QrSegment.hpp" #include "QrSegment.hpp"
using std::uint8_t;
namespace qrcodegen { namespace qrcodegen {