--- a/sources/coloredline.h Wed Jan 27 19:28:18 2021 +0200 +++ b/sources/coloredline.h Wed Jan 27 19:32:55 2021 +0200 @@ -49,24 +49,17 @@ NUM_COLORS }; -// ------------------------------------------------------------------------------------------------- -// -enum -{ - RLINE_ON_COLOR = 256, - RLINE_OFF_COLOR = 264, - RLINE_ON_BOLD = 272, - RLINE_OFF_BOLD -}; +constexpr int RLINE_ON_COLOR = 256; +constexpr int RLINE_OFF_COLOR = 264; +constexpr int RLINE_ON_BOLD = 272; +constexpr int RLINE_OFF_BOLD = 273; -// ------------------------------------------------------------------------------------------------- -// class ColoredLine { public: ColoredLine(); - const Vector<int>& data() const { return m_data; } + const std::vector<int>& data() const { return m_data; } int length() const { return m_length; } void addChar(char ch); void addString(const std::string& msg); @@ -77,7 +70,7 @@ void activateColor(Color color, bool bold); void setColor(Color a, bool on); - Vector<int> m_data; + std::vector<int> m_data; int m_length; bool m_final; Color m_activeColor;