diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-12-15 12:49:06 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-12-15 12:49:06 +1100 |
| commit | 3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920 (patch) | |
| tree | 0eac4ed28358e0496be6a35f77891b308849b477 /src/XPM.h | |
| parent | 7c020de8903c45bcc32795e28cc13a32285513f3 (diff) | |
| download | scintilla-mirror-3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920.tar.gz | |
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'src/XPM.h')
| -rw-r--r-- | src/XPM.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,8 +25,8 @@ class XPM { ColourDesired ColourFromCode(int ch) const; void FillRun(Surface *surface, int code, int startX, int y, int x); public: - XPM(const char *textForm); - XPM(const char *const *linesForm); + explicit XPM(const char *textForm); + explicit XPM(const char *const *linesForm); ~XPM(); void Init(const char *textForm); void Init(const char *const *linesForm); @@ -53,7 +53,7 @@ class RGBAImage { std::vector<unsigned char> pixelBytes; public: RGBAImage(int width_, int height_, float scale_, const unsigned char *pixels_); - RGBAImage(const XPM &xpm); + explicit RGBAImage(const XPM &xpm); virtual ~RGBAImage(); int GetHeight() const { return height; } int GetWidth() const { return width; } |
