From a27ff81c16f9a383ba9530aca1c4ecd16c79fee7 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 26 Oct 2021 08:15:24 +1100 Subject: Explicit constructors. --- src/CellBuffer.cxx | 2 +- src/Document.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 178975c1e..b84372cf2 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -37,7 +37,7 @@ struct CountWidths { // from the Base Multilingual Plane and those from other planes. Sci::Position countBasePlane; Sci::Position countOtherPlanes; - CountWidths(Sci::Position countBasePlane_=0, Sci::Position countOtherPlanes_=0) noexcept : + explicit CountWidths(Sci::Position countBasePlane_=0, Sci::Position countOtherPlanes_=0) noexcept : countBasePlane(countBasePlane_), countOtherPlanes(countOtherPlanes_) { } diff --git a/src/Document.cxx b/src/Document.cxx index a4bee0a08..511d8ca3b 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2962,7 +2962,7 @@ public: typedef wchar_t* pointer; typedef wchar_t& reference; - UTF8Iterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : + explicit UTF8Iterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : doc(doc_), position(position_), characterIndex(0), lenBytes(0), lenCharacters(0), buffered{} { buffered[0] = 0; buffered[1] = 0; -- cgit v1.2.3