aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Style.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-26 18:06:06 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-26 18:06:06 +1000
commit4dcd314b9a77c93f650f5ff4e42b3695366e0095 (patch)
treea495cbab189fc35a754ef335c90c2e696dce372c /src/Style.cxx
parent8f04bd4802e0e6063175b20d36df0d812b6a5db4 (diff)
downloadscintilla-mirror-4dcd314b9a77c93f650f5ff4e42b3695366e0095.tar.gz
Avoid some warnings.
Diffstat (limited to 'src/Style.cxx')
-rw-r--r--src/Style.cxx5
1 files changed, 2 insertions, 3 deletions
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)