Browse Source

Use friend class instead of protected members.

The reference got cluttered after I changed the private members to
protected.
tags/0.6.0
tastytea 10 months ago
parent
commit
8bb322edb9
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
3 changed files with 4 additions and 3 deletions
  1. +2
    -1
      src/identiconpp.hpp
  2. +1
    -1
      src/tests/test_checks_entropy.cpp
  3. +1
    -1
      src/tests/test_checks_hex.cpp

+ 2
- 1
src/identiconpp.hpp View File

@@ -42,6 +42,7 @@ using std::array;
class Identiconpp
{
public:
friend class Testiconpp;
/*!
* @brief List of identicon algorithms
*/
@@ -89,7 +90,7 @@ public:
*/
Magick::Image generate(const string &digest, const uint16_t width = 100);

protected:
private:
const uint8_t _rows;
const uint8_t _columns;
const algorithm _type;

+ 1
- 1
src/tests/test_checks_entropy.cpp View File

@@ -6,7 +6,7 @@

using std::string;

class Testiconpp : protected Identiconpp
class Testiconpp : private Identiconpp
{
public:
explicit Testiconpp(const uint8_t columns, const uint8_t rows,

+ 1
- 1
src/tests/test_checks_hex.cpp View File

@@ -6,7 +6,7 @@

using std::string;

class Testiconpp : protected Identiconpp
class Testiconpp : private Identiconpp
{
public:
explicit Testiconpp()

Loading…
Cancel
Save