From d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Apr 2017 17:44:09 +1000 Subject: Use =delete for unwanted functions. --- 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 adf5010c7..c0696a770 100644 --- a/src/Style.h +++ b/src/Style.h @@ -33,10 +33,10 @@ struct FontSpecification { // Just like Font but only has a copy of the FontID so should not delete it class FontAlias : public Font { - // FontAlias objects can not be assigned except for initialization - FontAlias &operator=(const FontAlias &) = delete; public: FontAlias(); + // FontAlias objects can not be assigned except for initialization + FontAlias &operator=(const FontAlias &) = delete; FontAlias(const FontAlias &); virtual ~FontAlias(); void MakeAlias(Font &fontOrigin); -- cgit v1.2.3