aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-10-26 08:15:24 +1100
committerNeil <nyamatongwe@gmail.com>2021-10-26 08:15:24 +1100
commita27ff81c16f9a383ba9530aca1c4ecd16c79fee7 (patch)
tree252f409322ab5e670fc77644be971f450714a431
parentf3a53bfcf5df26697289e01e041d39a659968ea2 (diff)
downloadscintilla-mirror-a27ff81c16f9a383ba9530aca1c4ecd16c79fee7.tar.gz
Explicit constructors.
-rw-r--r--src/CellBuffer.cxx2
-rw-r--r--src/Document.cxx2
2 files changed, 2 insertions, 2 deletions
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;