From 9367ce7ce7d80913d0fcbcfe10ae211cfe371bbf Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 26 Dec 2018 05:20:41 +0100 Subject: [PATCH] Removed leftover bits, made background in initializer a reference. --- src/identiconpp.cpp | 2 +- src/identiconpp.hpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/identiconpp.cpp b/src/identiconpp.cpp index cc071e7..975649d 100644 --- a/src/identiconpp.cpp +++ b/src/identiconpp.cpp @@ -24,7 +24,7 @@ Identiconpp::Identiconpp(const uint8_t rows, const uint8_t columns, identicon_type type, - const string background, + const string &background, const vector &foreground) : _rows(rows) , _columns(columns) diff --git a/src/identiconpp.hpp b/src/identiconpp.hpp index 81ec234..c972cba 100644 --- a/src/identiconpp.hpp +++ b/src/identiconpp.hpp @@ -17,12 +17,10 @@ #include #include #include -#include #include using std::uint8_t; using std::uint16_t; -using std::uint32_t; using std::string; using std::vector; @@ -62,7 +60,7 @@ public: */ explicit Identiconpp(const uint8_t rows, const uint8_t columns, identicon_type type = identicon_type::simple, - const string background = "ffffffff", + const string &background = "ffffffff", const vector &foreground = { "000000ff" } ); /*!