Use friend class instead of protected members.
the build was successful
Details
the build was successful
Details
The reference got cluttered after I changed the private members to protected.
This commit is contained in:
parent
455eba820b
commit
8bb322edb9
|
@ -42,6 +42,7 @@ using std::array;
|
||||||
class Identiconpp
|
class Identiconpp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
friend class Testiconpp;
|
||||||
/*!
|
/*!
|
||||||
* @brief List of identicon algorithms
|
* @brief List of identicon algorithms
|
||||||
*/
|
*/
|
||||||
|
@ -89,7 +90,7 @@ public:
|
||||||
*/
|
*/
|
||||||
Magick::Image generate(const string &digest, const uint16_t width = 100);
|
Magick::Image generate(const string &digest, const uint16_t width = 100);
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
const uint8_t _rows;
|
const uint8_t _rows;
|
||||||
const uint8_t _columns;
|
const uint8_t _columns;
|
||||||
const algorithm _type;
|
const algorithm _type;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
class Testiconpp : protected Identiconpp
|
class Testiconpp : private Identiconpp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit Testiconpp(const uint8_t columns, const uint8_t rows,
|
explicit Testiconpp(const uint8_t columns, const uint8_t rows,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
class Testiconpp : protected Identiconpp
|
class Testiconpp : private Identiconpp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit Testiconpp()
|
explicit Testiconpp()
|
||||||
|
|
Loading…
Reference in New Issue