aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-30 16:31:28 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-30 16:31:28 +1000
commit5aed28d2d5d3bb78fee63f31bbd58b7fb00eaec2 (patch)
tree95cfc3561ae6698288e43f3f79e5b2afe2ef8366 /src/Document.cxx
parentc22692ef627ad4b9019c42a44655f049512cb4b1 (diff)
downloadscintilla-mirror-5aed28d2d5d3bb78fee63f31bbd58b7fb00eaec2.tar.gz
Fix GetFontQuality. Simplify code that calls FlagSet.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index c20f7beea..74701bd8c 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -113,7 +113,7 @@ size_t ActionDuration::ActionsInAllowedTime(double secondsAllowed) const noexcep
}
Document::Document(DocumentOption options) :
- cb((FlagSet(options, DocumentOption::StylesNone)) == 0, (FlagSet(options, DocumentOption::TextLarge)) != 0),
+ cb(!FlagSet(options, DocumentOption::StylesNone), FlagSet(options, DocumentOption::TextLarge)),
durationStyleOneByte(0.000001, 0.0000001, 0.00001) {
refCount = 0;
#ifdef _WIN32