@@ -98,7 +98,7 @@ public:
|
||||
}
|
||||
|
||||
// Convert from wxCursor
|
||||
wxEXPLICIT wxBitmap(const wxCursor& cursor)
|
||||
explicit wxBitmap(const wxCursor& cursor)
|
||||
{
|
||||
(void)CopyFromCursor(cursor, wxBitmapTransparency_Auto);
|
||||
}
|
||||
|
@@ -96,7 +96,7 @@ public:
|
||||
|
||||
// as above, but takes reference DC as first argument to take resolution,
|
||||
// size, font metrics etc. from
|
||||
wxEXPLICIT
|
||||
explicit
|
||||
wxEnhMetaFileDC(const wxDC& referenceDC,
|
||||
const wxString& filename = wxEmptyString,
|
||||
int width = 0, int height = 0,
|
||||
|
@@ -47,7 +47,7 @@ private:
|
||||
class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasBase
|
||||
{
|
||||
public:
|
||||
wxEXPLICIT // avoid implicitly converting a wxWindow* to wxGLCanvas
|
||||
explicit // avoid implicitly converting a wxWindow* to wxGLCanvas
|
||||
wxGLCanvas(wxWindow *parent,
|
||||
const wxGLAttributes& dispAttrs,
|
||||
wxWindowID id = wxID_ANY,
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
const wxString& name = wxGLCanvasName,
|
||||
const wxPalette& palette = wxNullPalette);
|
||||
|
||||
wxEXPLICIT
|
||||
explicit
|
||||
wxGLCanvas(wxWindow *parent,
|
||||
wxWindowID id = wxID_ANY,
|
||||
const int *attribList = NULL,
|
||||
|
@@ -285,7 +285,7 @@ private:
|
||||
class WXDLLIMPEXP_CORE wxVariantDataSafeArray : public wxVariantData
|
||||
{
|
||||
public:
|
||||
wxEXPLICIT wxVariantDataSafeArray(SAFEARRAY* value = NULL)
|
||||
explicit wxVariantDataSafeArray(SAFEARRAY* value = NULL)
|
||||
{
|
||||
m_value = value;
|
||||
}
|
||||
|
@@ -157,7 +157,7 @@ template <wxUIntPtr INVALID_VALUE = (wxUIntPtr)INVALID_HANDLE_VALUE>
|
||||
class AutoHANDLE
|
||||
{
|
||||
public:
|
||||
wxEXPLICIT AutoHANDLE(HANDLE handle = InvalidHandle()) : m_handle(handle) { }
|
||||
explicit AutoHANDLE(HANDLE handle = InvalidHandle()) : m_handle(handle) { }
|
||||
|
||||
bool IsOk() const { return m_handle != InvalidHandle(); }
|
||||
operator HANDLE() const { return m_handle; }
|
||||
|
@@ -25,7 +25,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
wxEXPLICIT wxCOMPtr(T* ptr)
|
||||
explicit wxCOMPtr(T* ptr)
|
||||
: m_ptr(ptr)
|
||||
{
|
||||
if ( m_ptr )
|
||||
|
@@ -13,7 +13,7 @@
|
||||
class wxPipeInputStream : public wxInputStream
|
||||
{
|
||||
public:
|
||||
wxEXPLICIT wxPipeInputStream(HANDLE hInput);
|
||||
explicit wxPipeInputStream(HANDLE hInput);
|
||||
virtual ~wxPipeInputStream();
|
||||
|
||||
// returns true if the pipe is still opened
|
||||
@@ -34,7 +34,7 @@ protected:
|
||||
class wxPipeOutputStream: public wxOutputStream
|
||||
{
|
||||
public:
|
||||
wxEXPLICIT wxPipeOutputStream(HANDLE hOutput);
|
||||
explicit wxPipeOutputStream(HANDLE hOutput);
|
||||
virtual ~wxPipeOutputStream() { Close(); }
|
||||
bool Close();
|
||||
|
||||
|
@@ -19,13 +19,13 @@
|
||||
class wxTextMeasure : public wxTextMeasureBase
|
||||
{
|
||||
public:
|
||||
wxEXPLICIT wxTextMeasure(const wxDC *dc, const wxFont *font = NULL)
|
||||
explicit wxTextMeasure(const wxDC *dc, const wxFont *font = NULL)
|
||||
: wxTextMeasureBase(dc, font)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
wxEXPLICIT wxTextMeasure(const wxWindow *win, const wxFont *font = NULL)
|
||||
explicit wxTextMeasure(const wxWindow *win, const wxFont *font = NULL)
|
||||
: wxTextMeasureBase(win, font)
|
||||
{
|
||||
Init();
|
||||
|
Reference in New Issue
Block a user