aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-12-15 12:49:06 +1100
committerNeil <nyamatongwe@gmail.com>2013-12-15 12:49:06 +1100
commit3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920 (patch)
tree0eac4ed28358e0496be6a35f77891b308849b477 /src/PositionCache.h
parent7c020de8903c45bcc32795e28cc13a32285513f3 (diff)
downloadscintilla-mirror-3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920.tar.gz
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index 6d14cf0a3..2b4223769 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -53,7 +53,7 @@ public:
int lines;
XYPOSITION wrapIndent; // In pixels
- LineLayout(int maxLineLength_);
+ explicit LineLayout(int maxLineLength_);
virtual ~LineLayout();
void Resize(int maxLineLength_);
void Free();
@@ -116,7 +116,7 @@ public:
class Representation {
public:
std::string stringRep;
- Representation(const char *value="") : stringRep(value) {
+ explicit Representation(const char *value="") : stringRep(value) {
}
};