From 1b763e30f00b6f03d506bf1e1fa0c6cb5264205e Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 9 Apr 2017 16:51:46 +1000 Subject: Modernise ViewStyle with vector, unique_ptr, any_of, and method deletion. --- src/Style.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Style.h') diff --git a/src/Style.h b/src/Style.h index cc9148af6..b3b3852da 100644 --- a/src/Style.h +++ b/src/Style.h @@ -33,8 +33,8 @@ struct FontSpecification { // Just like Font but only has a copy of the FontID so should not delete it class FontAlias : public Font { - // Private so FontAlias objects can not be assigned except for intiialization - FontAlias &operator=(const FontAlias &); + // FontAlias objects can not be assigned except for initialization + FontAlias &operator=(const FontAlias &) = delete; public: FontAlias(); FontAlias(const FontAlias &); -- cgit v1.2.3