clang fixes, fixes #12332
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -793,23 +793,6 @@ private:
|
|||||||
const int m_numLines;
|
const int m_numLines;
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// private helpers
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace
|
|
||||||
{
|
|
||||||
|
|
||||||
// ensure that first is less or equal to second, swapping the values if
|
|
||||||
// necessary
|
|
||||||
void EnsureFirstLessThanSecond(int& first, int& second)
|
|
||||||
{
|
|
||||||
if ( first > second )
|
|
||||||
wxSwap(first, second);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // anonymous namespace
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// data structures used for the data type registry
|
// data structures used for the data type registry
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -880,7 +880,7 @@ inline double wxStrtod(const wxCStrData& nptr, T endptr)
|
|||||||
{ return implW(nptr, endptr, base); } \
|
{ return implW(nptr, endptr, base); } \
|
||||||
template<typename T> \
|
template<typename T> \
|
||||||
inline rettype name(const wxScopedCharTypeBuffer<T>& nptr, T **endptr, int base)\
|
inline rettype name(const wxScopedCharTypeBuffer<T>& nptr, T **endptr, int base)\
|
||||||
{ return name(nptr.data(), endptr); } \
|
{ wxUnusedVar(base); return name(nptr.data(), endptr); } \
|
||||||
template<typename T> \
|
template<typename T> \
|
||||||
inline rettype name(const wxString& nptr, T endptr, int base) \
|
inline rettype name(const wxString& nptr, T endptr, int base) \
|
||||||
{ \
|
{ \
|
||||||
|
@@ -156,6 +156,23 @@ wxDEFINE_EVENT( wxEVT_GRID_EDITOR_SHOWN, wxGridEvent );
|
|||||||
wxDEFINE_EVENT( wxEVT_GRID_EDITOR_HIDDEN, wxGridEvent );
|
wxDEFINE_EVENT( wxEVT_GRID_EDITOR_HIDDEN, wxGridEvent );
|
||||||
wxDEFINE_EVENT( wxEVT_GRID_EDITOR_CREATED, wxGridEditorCreatedEvent );
|
wxDEFINE_EVENT( wxEVT_GRID_EDITOR_CREATED, wxGridEditorCreatedEvent );
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// private helpers
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
|
// ensure that first is less or equal to second, swapping the values if
|
||||||
|
// necessary
|
||||||
|
void EnsureFirstLessThanSecond(int& first, int& second)
|
||||||
|
{
|
||||||
|
if ( first > second )
|
||||||
|
wxSwap(first, second);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // anonymous namespace
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
Reference in New Issue
Block a user