diff --git a/Makefile b/Makefile index 88924824..027564c0 100644 --- a/Makefile +++ b/Makefile @@ -124,7 +124,7 @@ rgbfix: ${rgbfix_obj} $Q${CC} ${REALLDFLAGS} -o $@ ${rgbfix_obj} ${REALCFLAGS} src/version.c rgbgfx: ${rgbgfx_obj} - $Q${CXX} ${REALLDFLAGS} ${PNGLDFLAGS} -o $@ ${rgbgfx_obj} ${REALCXXFLAGS} src/version.c ${PNGLDLIBS} + $Q${CXX} ${REALLDFLAGS} ${PNGLDFLAGS} -o $@ ${rgbgfx_obj} ${REALCXXFLAGS} -x c++ src/version.c ${PNGLDLIBS} # Rules to process files diff --git a/include/gfx/proto_palette.hpp b/include/gfx/proto_palette.hpp index daa4725e..1dd9c332 100644 --- a/include/gfx/proto_palette.hpp +++ b/include/gfx/proto_palette.hpp @@ -33,8 +33,6 @@ public: }; ComparisonResult compare(ProtoPalette const &other) const; - ProtoPalette &operator=(ProtoPalette const &other); - size_t size() const; decltype(_colorIndices)::const_iterator begin() const; diff --git a/src/gfx/proto_palette.cpp b/src/gfx/proto_palette.cpp index ae818237..5f253825 100644 --- a/src/gfx/proto_palette.cpp +++ b/src/gfx/proto_palette.cpp @@ -62,11 +62,6 @@ ProtoPalette::ComparisonResult ProtoPalette::compare(ProtoPalette const &other) return theyBigger ? THEY_BIGGER : (weBigger ? WE_BIGGER : NEITHER); } -ProtoPalette &ProtoPalette::operator=(ProtoPalette const &other) { - _colorIndices = other._colorIndices; - return *this; -} - size_t ProtoPalette::size() const { return std::distance(begin(), end()); }