From 4dcd314b9a77c93f650f5ff4e42b3695366e0095 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 26 Apr 2021 18:06:06 +1000 Subject: Avoid some warnings. --- src/Style.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Style.cxx') diff --git a/src/Style.cxx b/src/Style.cxx index ae5fa6aa3..00cf698ab 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -35,7 +35,7 @@ bool FontSpecification::operator<(const FontSpecification &other) const noexcept if (weight != other.weight) return weight < other.weight; if (italic != other.italic) - return italic == false; + return !italic; if (size != other.size) return size < other.size; if (characterSet != other.characterSet) @@ -83,8 +83,7 @@ Style::Style(const Style &source) noexcept : FontSpecification(), FontMeasuremen hotspot = source.hotspot; } -Style::~Style() { -} +Style::~Style() = default; Style &Style::operator=(const Style &source) noexcept { if (this == &source) -- cgit v1.2.3